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 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, …
Jump to Postwhat do you mean by K?
He means that the iostream library takes up more space in the executable than the stdio library after compilation. It's not an unreasonable concern, but shouldn't be the only concern when choosing between iostream and stdio.
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.