Wednesday 23 August 2017

C++ Programming Language

Introduction:- 

The C+ programming language was developed at AT&T Bell Laboratories in the early 1979s by Bjarne Stroustrup. C++ is high level Language.

 

Structure of a program

Probably the best way to start learning a programming language is by writing a program. Therefore, here is our first program:

// my first program in C++
 
#include <iostream>
using namespace std;
 
int main ()
{
  cout << "Hello SCP Infotch Institute!";
  return 0;
}
Hello SCP Infotch Institute!



// my first program in C++
This is a comment line. All lines beginning with two slash signs (//) are considered comments and do not have any effect on the behavior of the program.
#include <iostream>
Lines beginning with a hash sign (#) are directives for the preprocessor.
int main ()
This line corresponds to the beginning of the definition of the main function.
return 0;

The return statement causes the main function to finish.
More details- visit www.scpinfotech.com 

No comments:

Post a Comment