INTRODUCTION TO
C++
What is C++?
 C++ is a high-level programming language.
 It was developed by Bjarne Stroustrup.
 C++ is an object-oriented programming language which gives a clear structure to its
programs.
 It is an extension of C language.
USES OF C++:
C++ is a powerful general-purpose programming language. It can be used to develop operating
systems, browsers, games, and so on. C++ supports different ways of programming like procedural,
object-oriented, functional, and so on. This makes C++ powerful as well as flexible.
SYNTAX:
#include<iostream>
using namespace std;
main ()
{
body ()
}
#include<iostream>
 Iostream stands for standard input-output stream. This header file contains definitions to objects
like cin, cout, etc. this header file is used to handle the data being read from a file as input or data
being written into the file as output.
Using namespace std;
 The namespace actually identifies either it’s a built-in function or a user defined function.
 It contains C++ library built-in functions.
 Std is an abbreviation of standard, it represents standard identifier such as cout, cin etc.
 If we will not add it than it gives us an error as compiler doesn’t recognize these identifiers.

Introductio to c++

  • 1.
  • 2.
    What is C++? C++ is a high-level programming language.  It was developed by Bjarne Stroustrup.  C++ is an object-oriented programming language which gives a clear structure to its programs.  It is an extension of C language.
  • 3.
    USES OF C++: C++is a powerful general-purpose programming language. It can be used to develop operating systems, browsers, games, and so on. C++ supports different ways of programming like procedural, object-oriented, functional, and so on. This makes C++ powerful as well as flexible.
  • 4.
  • 5.
    #include<iostream>  Iostream standsfor standard input-output stream. This header file contains definitions to objects like cin, cout, etc. this header file is used to handle the data being read from a file as input or data being written into the file as output.
  • 6.
    Using namespace std; The namespace actually identifies either it’s a built-in function or a user defined function.  It contains C++ library built-in functions.  Std is an abbreviation of standard, it represents standard identifier such as cout, cin etc.  If we will not add it than it gives us an error as compiler doesn’t recognize these identifiers.