c++ - What's the value of characters in execution character set? -
quote c++03 2.2 character sets:
"the basic execution character set , basic execution wide-character set shall each contain members of basic source character set..the values of members of execution character sets implementation-defined, , additional members locale-specific."
according this, 'a'
, belongs execution character set, value implementation-defined. it's not 65(ascii code of 'a'
in decimal), what?!
// not 65? printf ("%d", 'a');
or i've misunderstanding value of character in execution character set?
of course can ascii's 65, if execution character set ascii or superset (such utf-8).
it doesn't "it can't ascii", says called "the execution character set".
Comments
Post a Comment