Walk Lightly on this PLANET and yet leave such a FOOTPRINT that cannot be erased for thousands of Years..!!!
Visit Codstech for Cyber Security related Posts !

Visitors

Sunday, September 16, 2012

CPP-1 : First Program to display a message


  • Compile the program using AltF9 , and then run the program using ControlF9.
    Save the file as name.CPP .That is , name of the file , followed by .CPP(dot CPP).
    Here I named the program "Firstprgrm." So, save it as Firstprgrm.CPP.
    ================================================================

    #include<iostream.h>
    #include<conio.h>
    void main()
    {
    clrscr();
    cout<<"My first C++ Program";
    getch();
    }
    =====================================
    Output : 
    My first C++ Program