home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / EXAMPLES / EX0327.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1993-10-27  |  635 b   |  19 lines

  1. // \EXAMPLES\EX0327.CPP
  2.  
  3. //--------------------------------------------------------------
  4. // files in this example:
  5. // EX0327.CPP     this file
  6. // %F,15,EX0327M.CPP%EX0327M.CPP    Microsoft Visual C++ version
  7. //--------------------------------------------------------------
  8. #include <iostream.h>
  9.  
  10. void main() {
  11.    enum direction {north, south, east, west = 99};
  12.    direction current_dir = north;
  13.    cout << "The value of north is " << current_dir << endl;
  14.    cout << "The value of south is " << south << endl;
  15.    cout << "The value of east is " << east << endl;
  16.    cout << "The value of west is " << west << endl;
  17.  
  18. }
  19.