i've seen many programs using printf( ) for outputing(probable ported from C) but anyway, is there any difference between printf and cout?
also i've seen many functions(expecially in windows.h) using w_char*(wide char string) as arguments or return value(and it bugs me because it makes difficult to use with strings)
what's the difference, why they needed to make 2 types of strings, char string and w_char string?
dospy
51
Junior Poster in Training
Recommended Answers
Jump to PostYour basic console mode "Hello, World!" program comes in around 6 K using stdio.h and printf and anywhere between 250 K - 500 K using iostream and std::cout. For these reasons I never use iostream. I do console output with printf. Anyway, iostream isn't particularly useful in GUI.
Wide …
Jump to Post>> why they needed to make 2 types of strings, char string and w_char string?
Because there are languages other than English. The alphabet in some of those languages, such as Chinese, can not be represented by one-byte char variable.
There are two versions of all, or most, …
All 6 Replies
Frederick2
189
Posting Whiz
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
vijayan121
1,152
Posting Virtuoso
dospy
51
Junior Poster in Training
Narue
5,707
Bad Cop
Team Colleague
dospy
51
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.