21xrx.com
2024-11-05 14:54:38 Tuesday
登录
文章检索 我的文章 写文章
C++'s English name
2023-07-04 21:05:57 深夜i     --     --
programming language syntax object-oriented compiler standard library

C++ is a programming language that is widely used in the tech industry today. It is known for its powerful features and versatility, making it a favorite among developers.

But have you ever wondered why it is called "C++"? The name actually has an interesting backstory.

C++ is an extension of the C programming language, which was developed in the 1970s by Dennis Ritchie at Bell Laboratories. In the 1980s, Bjarne Stroustrup, also a Bell Labs employee, set out to create an even more powerful language by building on C.

Stroustrup called his new language "C with Classes", as it included the ability to create classes – a fundamental feature of object-oriented programming. But as the language continued to evolve, it became clear that it was more than just an extension of C.

So, in 1983, Stroustrup changed the name of his language to "C++". The "++" symbol represents the increment operator in C, which adds one to a variable. By adding the "++" to "C", Stroustrup was symbolically indicating that his new language was a step up from C.

The name "C++" was also meant to be a tongue-in-cheek reference to the Java programming language, which was still in development at the time. The makers of Java had named it after a type of coffee bean, so Stroustrup joked that he was naming his language after a stronger beverage – "C++" being a common term for the highly potent variety of the Caffeine molecule.

Despite being a playful name, "C++" has stuck and has become the universally recognized name of Stroustrup's programming language. And today, it continues to be a popular choice for software developers, from creating complex operating systems to developing video games and mobile apps.

  
  

评论区

{{item['qq_nickname']}}
()
回复
回复