home *** CD-ROM | disk | FTP | other *** search
/ Beginning C++ Through Gam…rogramming (2nd Edition) / BCGP2E.ISO / bloodshed / devcpp-4.9.9.2_setup.exe / Examples / Hello / Hello.cpp next >
C/C++ Source or Header  |  2003-03-25  |  440b  |  22 lines

  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main (int argc, char *argv[])
  6.     char quit;  
  7.  
  8.     quit = '\0';
  9.     while (quit != 'q')
  10.     {
  11.         cout << "Hello ! This is a console app." << endl;
  12.         cout << "To create a console, go to Project Options and select" << endl;
  13.         cout << "\'Win32 Console\'." << endl;
  14.         cout << "Press q to quit " << endl;
  15.         cin >> quit;
  16.     }
  17.  
  18.     return 0;
  19. }
  20.  
  21.