Tuesday, December 6, 2011

HelloWorld.cpp

#include <iostream>

using namespace std;

// This is C++ comment


int main()
{
  int a,b,c;
  // cout is object of ostream class
  cout << "Hello World from C++ ";
  return 0;
}
// Description :
//cout is PREDEFINED object that represents
//standard output stream in C++.
//Here standard output stream is SCREEN.

//The operator << is called "INSERTION" operator or
//"PUT TO" operator.
//It sends (or inserts) contents of variable
//on its right side to the object on its 
// left.


No comments:

Post a Comment