C++语言中,“++”是什么意思,有什么缘由?

C++语言中,“++”是什么意思,有什么缘由,一时好奇?

阅读 10.7k
1 个回答

来自wikipedia

According to Stroustrup, "the name signifies the evolutionary nature of the changes from C". This name is credited to Rick Mascitti (mid-1983) and was first used in December 1983. When Mascitti was questioned informally in 1992 about the naming, he indicated that it was given in a tongue-in-cheek spirit. The name comes from C's ++ operator (which increments the value of a variable) and a common naming convention of using "+" to indicate an enhanced computer program.

中文 wiki

C++这个名字是Rick Mascitti于1983年中所建议的,并于1983年12月首次使用。更早以前,尚在研究阶段的发展中语言曾被称为“new C”,之后是“C with Classes”。在计算机科学中,C++仍被称为C语言的上层结构。它最后得名于C语言中的“++”运算符(其对变量的值进行递增)。而且在共同的命名约定中,使用“+”以表示增强的程序。斯特劳斯特鲁普说:“这个名字象征着源自于C语言变化的自然演进”。
推荐问题
宣传栏