1). Hello World C++ Example Program

Major Parts:

  1. Header Files Declaration and Namespace Declaration
  2. Main Function - int main()
  3. Other Functions/Classes(Optional)

Example Program:

/*  Example Program For Hello World In C++
    little drops @ thiyagaraaj.com

    Coded By:THIYAGARAAJ MP             */

// Header Files
#include<iostream>
#include<conio.h>

//Standard namespace declaration
using namespace std;

//Main Function
int main()
{

     //Standard Ouput Statement
     cout<<"My First C++ Program";

     // Wait For Output Screen
     getch();

     //Main Function return Statement
     return 0;
}