home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_01_04 / 1n04056a < prev    next >
Text File  |  1990-07-19  |  517b  |  23 lines

  1.  
  2.       init_menu();
  3.       while (choice != EXIT_PROGRAM)
  4.       {
  5.             choice = INVALID;
  6.             key = Input(&x, &y);
  7.             choice = disp_menu(key, x, y);
  8.             key = 0;
  9.             switch (choice)
  10.             {
  11.                  case FIRST_CHOICE:
  12.                        execute_first();
  13.                        break;
  14.  
  15.                  case SECOND_CHOICE:
  16.                        execute_second();
  17.                        break;
  18.  
  19.                  etc.
  20.             }
  21.       }
  22.  
  23.