c++

 Introduction on C++

         C++ is a simple, general purpose and object oriented programing language. It was developed by Bjarne Stroustrup at AT & T BELL laboratories of USA. C++ is the super set of "C" language. C++ is an extension of "C" with major classes and extra features.

      The idea of C++ comes from the increment operator of "C" language. So that C++ is also called as the increment version of "C" language.

Applications of C++

1.Games

2.Desktop Applications

3.Different drivers

4.Antiviruses

5.GUI based applications

6.Banking management systems

7.Clienet/server applications

A simple C++ program

#include<iostream.h>

main( )

{

cout<<"hello c++";

return 0;

}

Comments

There two types comments are used in  C++.

1.Single line comment

2.Multiline comment

1.Single line comment

A comment which start with two forward slash (//) is called Single line comment.

#include<iostream.h>

main( )

{

cout<<"hello c++";//simple output

return 0;

}

2.Multiline comment

A comment which start with two forward slash with asterisk(/*..............*/) is called Single line comment.

#include<iostream.h>

main( )

{

cout<<"hello c++";/*i simply

return 0;                    print*/ 

}





No comments: