在 ansi C 中使用某些字符的三字母序列 变成其他字符的最初原因是什么,例如:
??=define arraycheck(a, b) a??(b??) ??!??! b??(a??)
成为
#define arraycheck(a, b) a[b] || b[a]
最佳答案
简答:不包含此类图形的键盘/字符编码。
来自维基百科:
The basic character set of the C programming language is a superset of the ASCII character set that includes nine characters which lie outside the ISO 646 invariant character set. This can pose a problem for writing source code when the keyboard being used does not support any of these nine characters. The ANSI C committee invented trigraphs as a way of entering source code using keyboards that support any version of the ISO 646 character set.
关于关于 ansi C 的奇怪的三字母序列,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7376369/