home *** CD-ROM | disk | FTP | other *** search
/ Neil's C++ Stuff / neilcpp.iso / examples / hello.cpp next >
C/C++ Source or Header  |  1999-01-22  |  812b  |  20 lines

  1. /*******************************************************************************
  2.   hello.cpp
  3.   Neil C. Obremski
  4.   23 JAN 1999
  5.  
  6.   Simple program which outputs "Hello World!" to the screen.
  7. *******************************************************************************/
  8.  
  9. #include <iostream.h>                   // I/O stream header for 'cout'
  10.  
  11. int main()                              // declare main function
  12. {
  13.   cout << "Hello World!" << endl;       // displays "Hello World" with a
  14.                                         // carriage return to next line down
  15.  
  16.   return 0;                             // this means its a normal termination
  17.                                         // (program ended as planned)
  18. }
  19.  
  20. /******************************* end of program *******************************/