It’s a object orianted programing language “It was developed by Bjarne” Stroustrup at AT&T Bell Lamborateries in Murray Hill,New Jersey,USA in the early 1980’s.
C++ is an extension of C with a majour addition of a class construct feature of Simula 670,

Application of c++

  • It is a versatile language,It handle very large prgram
  • It allows to create hierachy-related objects
  • It is able to map real word program properly
  • It is easily maintainable and expandable
Simple c++ program

Wite a c++ program to prints a string on the screen.
#include<iostream.h>  // it’s a iclude header name not a file.
int main()    // main function
cout <<“it’s a object orianted programing language”; // it’s a print statement
return 0;
# Above example contains only one main() function. Usually the program execution is start at main function. every c++ program must contain main() 
Comments :
                            In c++ The comments are written in “//” (Double Slash and it is and with that line
ex:    // it is a comment line

Outpur Operator
The only one outpur statement is used in c++ that is “Cout”
Ex: Cout<<“It’s a object orianted programing language”;
Inside of the Quatation is display on the outpur screen
The operator “<<” is called insertion or put to operator
Header files:

<cassert> :  It Contains information for adding daignostics that aid program debugging.
<cctype>  :  It contains function prototypes for functions that test characters for certain properties.
<cfloat>   :  It cantains floating point size limits of the system.
<climits> : Contains the integral size limits of the system.
<cmath>  : Contain function prototypes for math library functions.
<iostream> : Contain function prototypes for standard input and standard output functions.
<iomanip.h> : Contain function prototypes for the stream manipulators that enable formatting of stream of data 
<fstream> : Contain functions prototypes for function that perform input from files on disk and output to files on disk.

Leave a Comment