LAYOUT OF A C++ PROGRAM


The layout of a simple C++ program should be as follows:

#include <iostream>
using namespace std;

int main( )
{
   Variable_Declarations

   Statement_1
   Statement_2
      . . .
   Statement_last

   return 0;
}