home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / _DISK_ / ch12 / welcome.cpp < prev   
C/C++ Source or Header  |  2005-06-16  |  536b  |  22 lines

  1. //             welcome.cpp
  2. //
  3. //    This is a comment
  4. /*    This is 
  5.  *    still a comment
  6.  */
  7. //
  8. // Synopsis  - Displays the string "Welcome to C++ on the 
  9. //             terminal screen.
  10. //
  11. // Objective - Illustrates the output stream, cout and the
  12. //             insertion operator <<.
  13.  
  14. // Include files
  15. #include <iostream.h>                                // Note 2
  16.  
  17. int main()                                           // Note 1
  18. {
  19.     cout << "Discovering C++\n";                     // Note 3
  20.     return 0;
  21. }
  22.