Wednesday, 25 May 2016

First c++ program:

#include<iostream.h>       //This is header file
#include<conio.h>           //This is header file
void main()                     // Starting of main program 
{
cout<<"first program";    //This will print the "first prgram " at screen
getch();                            //end of program
}

The user who is using dev can type following program:
#include<iosream>
using namespace std;

and then start from void main(){
cout<<"first program";


Sysem ("pause")
}

Type these programs on your compiler and then run it.
for turbo compiler run commond is f9:

No comments:

Post a Comment