Wednesday, 25 March 2015

First program in C++



Image result for c++

After installing the software of C language,we will start with our first program which will show how to print a string on Display Screen or Console.


Coding:
/* Hello World program */ 


 #include<iostream.h>

 #include<conio.h> 

void main()

            

             cout<<"Hello World"; //cout is used to print the string on console

             getch(); 

 }


Output:


0 comments:

Post a Comment