home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 17 / CD_ASCQ_17_101194.iso / dos / prg / alb_c10 / chap_15 / ch15_10.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-09-29  |  1.2 KB  |  49 lines

  1. /*********************************************************************
  2. *  CH15_10.C                     CrΘation de comptes clients  *
  3. *         mise α jour et lecture d'un compte α partir de son numΘro  *
  4. *********************************************************************/
  5.  
  6. #include"c:\albulus\chap_15\ch15_10.h"
  7. #include"c:\albulus\chap_15\ch15_10.le"
  8. #include"c:\albulus\chap_15\ch15_10.w"
  9.  
  10. main( void)
  11. {
  12.    char choix= 'z';
  13.    LitDateJour( &date_jour);
  14.  
  15.    while( choix!= 'E')
  16.    {
  17.     printf("\n\n\t -------------------------------------------\n"
  18.     "\t       Gestion de Comptes Clients\n\n"
  19.     "\t\t  Ouverture de comptes:\t\t[ O ]\n"
  20.     "\t\t  Affichage de comptes:\t\t[ A ]\n"
  21.     "\t\t  Mise α jour de comptes:\t[ M ]\n"
  22.     "\t\t  exit:        \t\t[ E ]\n"
  23.     "\t -------------------------------------------\n\t Choix:  ");
  24.  
  25.     LitChar( &choix);
  26.     if( ( choix> 96) && ( choix< 123) )   choix-= 32;
  27.  
  28.     switch( choix)
  29.     {
  30.       case 'O':     OuvreClient();
  31.             break;
  32.  
  33.       case 'A':     AfficheClient();
  34.             break;
  35.  
  36.       case 'M':     MajClient();
  37.             break;
  38.  
  39.       case 'E':    break;
  40.  
  41.       default:    printf(" Erreur! composez O, A, M, ou E");  
  42.     }
  43.    }
  44.    printf("\n\n\t\t *** Fin du programme ***");
  45.     
  46.     
  47. }
  48.  
  49.