Write a program to output a messege

This is an ideal First C++ (CPP) program.
All necessary things are described with in the program in comments.

Select To use this code as it is.. select and copy paste this code into code.cpp file :)



  1. #include <iostream.h> //These are the Header files and are essential..
  2. #include <conio.h> // They varies program to program.
  3. void main() //This is a special type of function.Program starts and ends in MAIN.
  4. {
  5. //Coding by: Snehil Khanor
  6. //http://WapCPP.blogspot.com
  7. clrscr(); //This clears previous outputs from the output screen
  8. cout<<"Hello India"; //This is responsible for diplaying a messege
  9. cout<<"\nThis is my first C++ programme";
  10. getch(); //This helps to sustain the output on Screen.
  11. }

Check out this stream