是否按标准保证字符的顺序?例如,我可以算出字符集表中“1”符号后跟“2”符号吗?或者它是特定于平台的?
最佳答案
1999 年的 C 标准对字符集是这样说的:
Both the basic source and basic execution character sets shall have the following members:
the 26 uppercase letters of the Latin alphabet
...
the 26 lowercase letters of the Latin alphabet
...
the 10 decimal digits
0 1 2 3 4 5 6 7 8 9
the following 29 graphic characters
...
In both the source and execution basic character sets, the value of each character after 0 in the above list of decimal digits shall be one greater than the value of the previous.
关于c++ - 字符集中字符的顺序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12832802/