The Wayback Machine - https://web.archive.org/web/20240930165634/https://www.geeksforgeeks.org/history-of-c/
Open In App

History of C++

Last Updated : 13 Jun, 2022
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

The C++ language is an object-oriented programming language & is a combination of both low-level & high-level language – a Middle-Level Language. The programming language was created, designed & developed by a Danish Computer Scientist – Bjarne Stroustrup at Bell Telephone Laboratories (now known as Nokia Bell Labs) in Murray Hill, New Jersey. As he wanted a flexible & a dynamic language which was similar to C with all its features, but with additionality of active type checking, basic inheritance, default functioning argument, classes, inlining, etc. and hence C with Classes (C++) was launched. 

C++ was initially known as “C with classes, ” and was renamed C++ in 1983. ++ is shorthand for adding one to variety in programming; therefore C++ roughly means that “one higher than C.” 

 

 

  • The trace of the programming language C++ can be done back to 1979 when Bjarne Stroustrup was doing some development for this thesis for PhD. One in all the words Stroustrup had the chance to figure with, was a language referred to as Simula, that because the name implies, could be a language primarily designed for simulations. The Simula sixty-seven language – that was the variant that Stroustrup worked with is considered the primary language to support the object-oriented programming paradigm. Stroustrup found that this paradigm was helpful for package development; but, the Simula language was way too slow for practice & practical use.
  • Shortly subsequently, he began work on “C with Classes“, because what the name implies was meant to be a superset of the C language. His main dream was to get his advanced object-oriented programming, created by him, into the C language, which was during his era was still the programming language that was widely respected for its movability, portability & compactness, by not sacrificing the speed or the low-level practicality. His programming language enclosed inlining, basic inheritance, default function arguments, categories, and reliable sort was checking additionally to all or any the options of the C language.
  • The first C with categories compiler was referred to as Cfront, that got derived from a C compiler referred to as CPre. It had been a program designed to translate C with categories code to universal C. A rather attention-grabbing purpose value noting is that Cfront was written mostly in C with classes, creating it a self-hosting compiler (a compiler which will compile itself). Cfront would later be abandoned in 1993 when it became troublesome to integrate new options into it, mainly C++ exceptions. Even so, Cfront created a significant impact on the implementations of future compilers and also the operating system UNIX.
  • In 1983, the name of the language got modified from C with categories to C++. The ++ operator within the C language is the associate operator for incrementing a variable, which provides some insight into however Stroustrup regarded the programming language. Several new options got additional around this point, the foremost notable of that area unit virtual functions, perform overloading, references with the const keyword, and single-line comments by using the two forward slashes (which may be a feature taken from the language BCPL).
  • In 1985, Stroustrup’s relation to the language entitled The C++ programming language was printed and got released. That very same year, C++ got enforced as an advertisement product and hence starting of it as a commercial element. The programming language wasn’t formally standardized, nevertheless creating the book an essential reference. The programming language was updated once more in 1989 to incorporate protected and static members, still as an associate inheritance from many categories & classes.
  • In 1990, The Annotated C++ manual, which was a reference got released all over. In 1990 only, in the same & identical year, Borland’s Turbo C++ compiler would also be commercially discharged as an advertisement product. Turbo C++ additional an excessiveness of other libraries which might have a substantial impact on C++’s development. Though Turbo C++’s last stable unharness was in 2006, the compiler continues to get widely used.
  • In 1998, the C++ customary advisory & standards committee printed the first international standard for C++ ISO/IEC 14882:1998, which might be informally called C++98. The Annotated C++ manual was aforementioned to be a significant influence within the development of the quality. The quality template library (also known as the Standard Template Library) that began its intellectual construction in 1979 got additionally enclosed in it. In 2003, the committee well-versed multiple issues that were according with their 1998 customary and revised it consequently. The modified language got dubbed as C++03.
  • In 2005, the same committee of C++ discharged a technical report (called as TR1) particularization varied options they were aiming to boost the newest C++ standard. The new rule was informally dubbed C++0x because it was expected to be discharged someday before the tip of the first decade. Ironically, however, the new customary wasn’t fulfilled until mid-2011. Many technical reports were discharged up till then, and a few compilers began adding experimental support for the new options and features.
  • In mid-2011, the new C++ customary (dubbed C++11) got finished. The Boost library project created a substantial impact on the new rule, and a few of the new modules were derived directly from the corresponding Boost libraries. A number of the new options that got included were: 
    1. New for loop syntax providing practicality just like foreach loops in specific different languages
    2. Customary threading library (which up till 2011 each C and C++ were lacking)
    3. Variadic templates
    4. Automotive vehicle (AUTO) keyword
    5. New instrumentation categories & classes
    6. New C++ time library, atomics support
    7. Comprehensive organization library
    8. Regular expression support
    9. Higher support for unions and array-initialization lists
  • C++20 is the latest version of C++. A newer & advanced version of C++ is being released, i.e. C++23.
  • C++ is still the third most popular programming language according to the TIOBE Index’s latest study of 2019, behind Java & C, by knocking out Python. All credits for this go to the newly released C++11 version, which according to the users made it much robust, safer, easier simpler, and more expressive.

Bjarne Stroustrup has created excellent work with C++. C could be a low-level programming language, and so, it does not have any classes. It does not contain several options which will create programming more well-off, however, is that the quickest language (assembly is more rapid; however, programming in construction isn’t one thing you’d consider), what Bjarne Stroustrup did he additional the thing orientated half, by treating code like life objects. What makes C++ therefore lovely is that it’s the speed of C and it’s additionally a high-level programming language, therefore allow us to say the most effective of each world. However on the opposite hand, C++ is challenging to be noted to newbies, and for an equivalent code that you wrote on C++, you’ll be able to write in Python for the quarter of the time. 

Features of C++: 
The five best features of C++ are:- 
 

  1. It is the most primarily used language in competitive programming as far as facts go. Most of the extremely rated coders typically use C++ for cryptography. You’ll see it on any online websites.
  2. STL (standard guide library): Its an extremely time-saver for people who recognize C and still writing code for bubble type.
  3. Operator overloading
  4. Multiple inheritances. Voluminous languages don’t have this facility.
  5. Ability to modularize code, encapsulation, and polymorphism after all.

Summary Table of history of various C++ versions: 
 

Version Release Date Major changes
C++98 (ISO/IEC 14882:1998) October 1998 The first version
C++03 (ISO/IEC 14882:2003) February 2003 Introduction of value initialization.
C++11 August 2011 Introduction of Lambda Expressions, Delegating Constructors, Uniform Initialization Syntax, nullptr, Automatic Type Deduction and decltype, Rvalue References etc.
C++14 August 2014 Introduction of polymorphic lambdas, digit separators, generalized lambda capture, variable templates, binary integer literals, quoted strings etc.
C++17 December 2017 Introduction of fold expressions, hexadecimal floating point literals, a u8 character literal, selection statements with initializer, inline variables etc.
C++20

March

2020

This update extends C++ with the facilities to inspect program entities such as variables, enumerations, classes and their members, lambdas and their captures, etc.
C++23 Future Release The next major revision of the C++ standard

 



Previous Article
Next Article

Similar Reads

C++ Programming Language
C++ is the most used and most popular programming language developed by Bjarne Stroustrup. C++ is a high-level and object-oriented programming language. This language allows developers to write clean and efficient code for large applications and software development, game development, and operating system programming. It is an expansion of the C pr
9 min read
7 ways to Initialize Vector in C++
Vectors in C++, like Arrays, are one of the most extensively used entities and to initialize vectors in C++ is one of the most common issues that users face. One of the most commonly used methods for vector initialization is the Array style. But C++, along with this, provides several different methods to initialize a vector. In this post, we have l
6 min read
30 OOPs Interview Questions and Answers (2024) Updated
Object-oriented programming, or OOPs, is a programming paradigm that implements the concept of objects in the program. It aims to provide an easier solution to real-world problems by implementing real-world entities such as inheritance, abstraction, polymorphism, etc. in programming. OOPs concept is widely used in many popular languages like Java,
15+ min read
Top 50 C++ Project Ideas For Beginners & Advanced
C++ is one of the most popular programming languages widely used in the software industry for projects in different domains like games, operating systems, web browsers, DBMS, etc due to its fast speed, versatility, lower-level memory access, and many more. Many top companies like Microsoft, Google, Apple, Netflix, etc use C++ to develop their produ
15+ min read
Modulo Operator (%) in C/C++ with Examples
In C or C++, the modulo operator (also known as the modulus operator), denoted by %, is an arithmetic operator. The modulo division operator produces the remainder of an integer division which is also called the modulus of the operation. Syntax of Modulus OperatorIf x and y are integers, then the expression: x % y;pronounced as "x mod y". For examp
5 min read
Sorting a vector in C++
Prerequisites : std::sort in C++, vector in C++, initialize a vector in C++. C/C++ Code // C++ program to sort a vector in non-decreasing // order. #include <bits/stdc++.h> using namespace std; int main() { vector<int> v{ 1, 5, 8, 9, 6, 7, 3, 4, 2, 0 }; sort(v.begin(), v.end()); cout << "Sorted \n"; for (auto x : v) cout
4 min read
Left Shift and Right Shift Operators in C/C++
In C/C++, left shift (<<) and right shift (>>) operators are binary bitwise operators that are used to shift the bits either left or right of the first operand by the number of positions specified by the second operand allowing efficient data manipulation. In this article, we will learn about the left shift and right shift operators. Le
6 min read
vector erase() and clear() in C++
Prerequisite: Vector in C++ Vectors are the same as dynamic arrays with the ability to resize themselves automatically when an element is inserted or deleted, with their storage being handled automatically by the container. vector::clear() The clear() function is used to remove all the elements of the vector container, thus making it size 0. Syntax
6 min read
Substring in C++
The substring function is used for handling string operations like strcat(), append(), etc. It generates a new string with its value initialized to a copy of a sub-string of this object. In C++, the header file which is required for std::substr(), string functions is <string>. The substring function takes two values pos and len as an argument
8 min read
getline (string) in C++
The C++ getline() is a standard library function that is used to read a string or a line from an input stream. It is a part of the <string> header. The getline() function extracts characters from the input stream and appends it to the string object until the delimiting character is encountered. While doing so the previously stored value in th
5 min read
rand() and srand() in C++
rand() function is an inbuilt function in C++ STL, which is defined in header file <cstdlib>. rand() is used to generate a series of random numbers. The random number is generated by using an algorithm that gives a series of non-related numbers whenever this function is called. The rand() function is used in C++ to generate random numbers in
5 min read
Inheritance in C++
The capability of a class to derive properties and characteristics from another class is called Inheritance. Inheritance is one of the most important features of Object Oriented Programming in C++. In this article, we will learn about inheritance in C++, its modes and types along with the information about how it affects different properties of the
15+ min read
C++ Classes and Objects
In C++, classes and objects are the basic building block that leads to Object-Oriented programming in C++. In this article, we will learn about C++ classes, objects, look at how they work and how to implement them in our C++ program. What is a Class in C++?A class is a user-defined data type, which holds its own data members and member functions, w
9 min read
C++ Data Types
All variables use data type during declaration to restrict the type of data to be stored. Therefore, we can say that data types are used to tell the variables the type of data they can store. Whenever a variable is defined in C++, the compiler allocates some memory for that variable based on the data type with which it is declared. Every data type
10 min read
Convert String to int in C++
Converting a string to int is one of the most frequently encountered tasks in C++. As both string and int are not in the same object hierarchy, we cannot perform implicit or explicit type casting as we can do in case of double to int or float to int conversion. Conversion is mostly done so that we can convert numbers that are stored as strings. Exa
8 min read
std::sort() in C++ STL
std::sort() is an STL function that is used to sort the given range in desired order. It provides a simple and efficient way to sort the data in C++ but it only works on data structure which have random access to its elements such as vectors and arrays. It is defined inside <algorithm> header file. Syntaxstd::sort (first, last, comp);Paramete
4 min read
unordered_map in C++ STL
unordered_map is an associated container that stores elements formed by the combination of a key value and a mapped value. The key value is used to uniquely identify the element and the mapped value is the content associated with the key. Both key and value can be of any type predefined or user-defined. In simple terms, an unordered_map is like a d
7 min read
Deque in C++ Standard Template Library (STL)
Double-ended queues are sequence containers with the feature of expansion and contraction on both ends. They are similar to vectors, but are more efficient in case of insertion and deletion of elements. Unlike vectors, contiguous storage allocation may not be guaranteed. Double Ended Queues are basically an implementation of the data structure doub
4 min read
Priority Queue in C++ Standard Template Library (STL)
A C++ priority queue is a type of container adapter, specifically designed such that the first element of the queue is either the greatest or the smallest of all elements in the queue, and elements are in non-increasing or non-decreasing order (hence we can see that each element of the queue has a priority {fixed order}). In C++ STL, the top elemen
11 min read
Stack in C++ STL
Stacks are a type of container adaptors with LIFO(Last In First Out) type of working, where a new element is added at one end (top) and an element is removed from that end only. Stack uses an encapsulated object of either vector or deque (by default) or list (sequential container class) as its underlying container, providing a specific set of membe
5 min read
List in C++ Standard Template Library (STL)
Lists are sequence containers that allow non-contiguous memory allocation. As compared to the vector, the list has slow traversal, but once a position has been found, insertion and deletion are quick (constant time). Normally, when we say a List, we talk about a doubly linked list. For implementing a singly linked list, we use a forward_list. std::
6 min read
Vector in C++ STL
Vectors are the same as dynamic arrays with the ability to resize themselves automatically when an element is inserted or deleted, with their storage being handled automatically by the container. Vector elements are placed in contiguous storage so that they can be accessed and traversed using iterators. In vectors, data is inserted at the end. Inse
11 min read
Set in C++ Standard Template Library (STL)
Sets are a type of associative container in which each element has to be unique because the value of the element identifies it. The values are stored in a specific sorted order i.e. either ascending or descending. The std::set class is the part of C++ Standard Template Library (STL) and it is defined inside the <set> header file. Syntax: std:
7 min read
Map in C++ Standard Template Library (STL)
Maps are associative containers that store elements in a mapped fashion. Each element has a key value and a mapped value. No two mapped values can have the same key values. std::map is the class template for map containers and it is defined inside the <map> header file. Basic std::map Member FunctionsSome basic functions associated with std::
8 min read
C++ Standard Template Library (STL)
The C++ Standard Template Library (STL) is a set of template classes and functions that provides the implementation of common data structures and algorithms such as lists, stacks, arrays, sorting, searching, etc. It also provides the iterators and functors which makes it easier to work with algorithms and containers. STL was originally designed by
9 min read
Object Oriented Programming in C++
Object-oriented programming - As the name suggests uses objects in programming. Object-oriented programming aims to implement real-world entities like inheritance, hiding, polymorphism, etc. in programming. The main aim of OOP is to bind together the data and the functions that operate on them so that no other part of the code can access this data
10 min read
Operator Overloading in C++
in C++, Operator overloading is a compile-time polymorphism. It is an idea of giving special meaning to an existing operator in C++ without changing its original meaning. In this article, we will further discuss about operator overloading in C++ with examples and see which operators we can or cannot overload in C++. C++ Operator OverloadingC++ has
8 min read
Templates in C++ with Examples
A template is a simple yet very powerful tool in C++. The simple idea is to pass the data type as a parameter so that we don't need to write the same code for different data types. For example, a software company may need to sort() for different data types. Rather than writing and maintaining multiple codes, we can write one sort() and pass the dat
10 min read
Friend Class and Function in C++
A friend class can access private and protected members of other classes in which it is declared as a friend. It is sometimes useful to allow a particular class to access private and protected members of other classes. For example, a LinkedList class may be allowed to access private members of Node. We can declare a friend class in C++ by using the
6 min read
Bitwise Operators in C
In C, the following 6 operators are bitwise operators (also known as bit operators as they work at the bit-level). They are used to perform bitwise operations in C. The & (bitwise AND) in C takes two numbers as operands and does AND on every bit of two numbers. The result of AND is 1 only if both bits are 1.  The | (bitwise OR) in C takes two n
7 min read
Article Tags :
Practice Tags :