为什么字符串被称为“字符串”?
Possible Duplicate:
The History Behind the Definition of a 'String'
About the only thing every programming language I've seen is able to agree upon is that a variable that refers to a block of text is called a "string." Why? Where does the name come from, and how did it become idiomatic across programming in general?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
好问题!这可能会有所帮助:
资料来源:http://www.vias.org/cppcourse/chap07_03.html
Great question! This might be somewhat helpful:
Source: http://www.vias.org/cppcourse/chap07_03.html
非常有趣,
字符串的定义(至少根据普林斯顿)是:
符号的线性序列
因此,由于字符串数据类型是字符/符号的序列,因此它更符合定义。
Very interesting,
The very definition of a string (according to Princeton at least) is:
a linear sequence of symbols
So, since the String datatype is a sequence of characters/symbols, it rather fits the definition.