c++ - 字符集中字符的顺序

标签 c++ c

是否按标准保证字符的顺序?例如,我可以算出字符集表中“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/

相关文章:

c++ - cmake 添加外部库

c++ - 带括号表达式的逗号运算符用法示例

c++ - 根据用户输入创建多个线程的程序不起作用 (cin)?

iphone - typedef const struct *CGPath 和 typedef struct *CGPath 有什么区别?

c++ - 尝试用用户输入填充数组

c++ - OpenGL 3 如何放大 GL_TEXTURE RECTANGLE?

c - 字符指针的整数警告

c++ - 在 intel intrinsics (AVX) 中使用混合指令

c - Linux 套接字 : How to detect disconnected network in a client program?

c - 在循环中使用 read 和 malloc 时防止 Ctrl+C 后泄漏