关于 ansi C 的好奇三字母序列
使用某些字符的三字母序列成为ansi C中的其他字符的最初原因是什么,例如
??=define arraycheck(a, b) a??(b??) ??!??! b??(a??)
:
#define arraycheck(a, b) a[b] || b[a]
What was is it the original reason to use trigraph sequence of some chars to become other chars in ansi C like:
??=define arraycheck(a, b) a??(b??) ??!??! b??(a??)
becomes
#define arraycheck(a, b) a[b] || b[a]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
简短的回答:不包括此类图表的键盘/字符编码。
来自维基百科:
http://en.wikipedia.org/wiki/Digraphs_and_trigraphs
Short answer: keyboards/character encodings that didn't include such graphs.
From wikipedia:
http://en.wikipedia.org/wiki/Digraphs_and_trigraphs
一些旧键盘上没有特定的字符,因此该语言通过让您使用三字母来解决它。
Some old keyboards didn't have specific characters on them, so the language worked around it by letting you use trigraphs instead.