Hello

Below is the basic hello world like program, to start with C++

#include<iostream.h>
#include<conio.h>

void main()
{
    clrscr();
    cout<<"Hello";
    cout<<"\n\tWelcome to C++ Programming";
}



Both user and system header files are included using the preprocessing directive #include.
iostream.h and conio.h are header files which our program requires to perform operations.

iostream.h stands for Input/Output Stream
conio.h stands for Console Input/Output

clrscr() function is called to clear console screen
cout stands for Console Output
Previous Post Next Post