C++ Overview:

C++ programming language was developed by Bjarne stroustrup in 1979 at Bell laboratories. C++ has become one of the most popular programming languages today. In the past, it was mainly used for writing system programs such as operating system, compilers, assemblers and utility programs.

Today, it is preferred by many programmers for writing all types of application programs as well such as word processing programs, database management systems, game, etc.

C++ is highly structured programming language. It provides the convenience of a high level language and at the same time allows much closer control of a computer’s hardware and peripherals, as assembly language does.

C++ is sometimes called a mid-level language since it combines some features of low-level language and some of high level language. Therefore, it has advantages of both. It is low level in the sense that it can manipulate bits and words more like the computer and high level in the sense that its program structure is very similar to high level languages such as Pascal and Ada.

C++ is an efficient programming language. C++ is a machine independent language it means that the programs written in C++ can be executed on different types of computers. C++ is a case sensitive language.

C++ provides the facility of modular programming. It means that the program can be divided into small modules. C++ also supports object oriented language. Object oriented supports four concepts: Encapsulation, inheritance, polymorphism, and abstraction.

The C++ standard library contains functions, data types, variables, etc. it also supports manipulation of data structure. The standard library is defined by header files. For example <iostream> for input/output.

 

The ANSI standard

To ensure that the C++ programs written in one system can be executed on another, international standards for the language have been formulated. Many software developers have adopted ANSI for C++ which made C++ more portable.

 

Learning C++

C++ is a high level language. It is easier to write programs in C++ than machine language. C++ is very convenient language. It provides many facilities in easier way that are difficult to use in low level languages. Programmers can write complex programs more easily.

C++ is a well structured language. Its syntax is easy to understand. The programs written in c language are easy to maintain and modify. C++ provides close control on hardware. It can be used to write efficient programs.

 

Use of C++

C++ is a small language that has a small number of keywords and programming controls. But still it is very powerful for developing different types of programs.

The compilers of C++ language generate very fast code. The code executes very efficiently. So the program takes less time to execute. C++ is used for office applications, making games, graphics, video editors, embedded software, etc.

 

Advantages of C++

Some important advantages of C++ language are as follows:

  • Convenient Language

C++ is very convenient language. It provides many facilities in easier way that are difficult to use in low level languages. Programmers can write complex programs more easily.

  • Well structured language

C++ is a well structured language. Its syntax is very easy to understand. The programs written in C++ language are easy to maintain and modify.

  • Machine independent

It is a machine independent language. It means that the program written in C++ language can be executed on different types of computers.

  • Modularity

C++provides the facility of modular programming. It means that the program can be divided into small modules.

  • Case sensitivity

C++ is a case sensitive language. It means that it can differentiate uppercase and lowercase words.

  • Hardware control

C++ programming language provides close control on hardware. It can be used to write efficient programs to control hardware components of computer system.

  • Small language

C++ is a small language. It has a small number of keywords and programming controls. But still it is very powerful for developing different types of programs.

  • Fast code generation

The compilers of C++ language generate very fast code. The code executes very efficiently. So the programs take less time to execute.