Introduction to C++ Programming Language
Object oriented programming (OOP) has become the preferred programming approach by the software industries, as it offers a powerful way to cope with the complexity of real-world problems. Among the OOP languages today, C++ Programming Language is the most widely used programming language.
C++ Programming Language is a statically typed, compiled, general-purpose, case-sensitive, free-form programming language that supports procedural, object-oriented, and generic programming. C++ is also called as a middle-level language, as it comprises a combination of both high-level and low-level programming language features.
History of C++ Programming Language
It was developed by Bjarne Stroustrup at AT&T Bell Laboratories in Murray Hill, New Jersey, USA, in the early 1980’s. Stroustrup, an admirer of Simula67 and a strong supporter of C Language, wanted to combine the best of both the programming languages and create a more powerful programming language that could support object-oriented programming features and still retain the power and elegance of C. The result was C++. Therefore, C++ is an extension of C with a major addition of the class construct feature of Simula67. Since the class was a major addition to the original C language, Stroustrup initially called the new language ‘C with classes’. However, later in 1983, the name was changed to C++. The idea of C++ comes from the C increment operator ++, thereby suggesting that C++ is an augmented version of C.
Application and Advantages of C++ Programming Language
C++ is a versatile language for handling very large programs. It is suitable for virtually any programming task including development of editors, compilers, databases, communication systems and any complex real life applications systems.
- Since C++ allow us to create hierarchy related objects, we can build special object-oriented libraries which can be used later by many programmers.
- While C++ is able to map the real-world problem properly, the C part of C++ gives the language the ability to get closed to the machine-level details.
- C++ programs are easily maintainable and expandable. When a new feature needs to be implemented, it is very easy to add to the existing structure of an object.
- It is expected that C++ will fully replace C language as a general-purpose language in the near future.
C++ as an Object Oriented Programming (OOP)
An Object-Oriented Programming Language have the following four main pillars.
- Data hiding or Abstraction
C++ Programming Language supports all of the above pillars of object-oriented programming.
Standard Libraries of C++ Programming Language
The C++ standard consists of the following two components.
- Core Language: The core language giving all the building blocks including variables, data types and literals, etc.
- Standard Library: The C++ Standard Library giving a rich set of functions manipulating files, strings, etc.
In addition to this C++ has an another important component Standard Template Library (STL). A large part of the C++ library is based on this Standard Template Library (STL).
Learning C++ Programming Language
C++ can’t be learn within a day. Not even any other programming language can be learn within a day. It needs times & serious focus on it’s concept to learn C++.
The purpose of learning a programming language is to become a better programmer; i.e. to become more effective at designing and implementing new systems as well as maintaining old ones.
If you are already an expert or have some basic knowledge on any programming language, you can easily learn the basics of C++ programming. But it’s not necessary to have knowledge on any programming language. You can learn C++ even if you are very new to programming. It’s needs just some times and focus on it’s concepts.