C++ History Example Code References
Home Search



C++ - Langpedia

C++


Website:

isocpp.org

C++

C++ is a high-level programming language based on C. In the 1990s, C++ became one of the most used programming languages in the world. Like C, C++ uses manual memory management, and largely shares the same syntax with C, although there are some differences.

The C++ programming language was developed by Bjarne Stroustrup at Bell Labs in the 1980s, and was originally named "C with classes".

History

In 1979, a Danish computer scientist named Bjarne Stroustrup began work on "C with classes", the predecessor to C++. The motivation to create it came from his PhD thesis experience working with Simula, which had features very helpful for large software development, but was too slow. He then had the same motivation at Bell Labs, on the UNIX kernel. He then set out to enhance C with Simula-like extra features.

Initally, his programming language added features to the C compiler, like classes, derived classes, strong typing, and default arguments.

In 1982, he started to develop a successor, named C++. Many new features were added, including virtual functions, function and operator overloading, references, constants, type-safe free-store memory allocation (new/delete), improved type checking, and single-line comments with two forward slashes. He developed a new, standalone compiler for C++, called Cfront.

In 1989, C++ 2.0 released, with features like multiple inheritance, abstract classes, static member functions, const member functions, and protected members.

In 1998, C++98 was released, officially ISO standardising the language, as ISO/IEC 14882:1998.

After C++98, C++ evolved slowly until, in 2011, C++11 was released, which added plenty of new features and grew the standard library much further.

A draft of the C++20 standard was approved in September 2020, and officially published in December 2020.

Example Code

The below example code only works on C++23 or later and is the "modern" way.

import std;

int main() {
    std::println("Hello, world!");
}

Though, the older way still works and will continue to work in future versions.

#include <iostream>

int main()
{
    std::cout << "Hello World!";
}

References

En Wikipedia Org. (2026). C++. https://en.wikipedia.org/wiki/C++. Retrieved August 7, 2026.



All Langpedia content is licensed under the Creative Commons Attribution-ShareAlike 4.0 License.