Advertisement
Guest User

Untitled

a guest
Jul 21st, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.95 KB | None | 0 0
  1. void print_menu(){
  2.        
  3.         cout << "--------------------Welcom to " << Hotelname << " -----------------------" << endl;
  4.         string menu[] ={
  5.                          "n new custemer\t\t1",
  6.                          "p print all customer\t2",
  7.                          "a accomodation booking\t3",
  8.                          "b breakfast booking\t4",
  9.                          "s show all orders\t5",
  10.                          "e end of programm\t0",
  11.                          "\nyour choice: "
  12.                          
  13.                         }; 
  14.         for(int i=0;i<7;i++)
  15.         {
  16.             cout <<menu[i]<< endl;
  17.         };
  18. }
  19.     void menu(){
  20.         print_menu();
  21.         int i = -1;
  22.        
  23.         cin >> i;cin.ignore(32000, '\n');
  24.  
  25.         switch(i){
  26.             case 1 :cout<<"\nyour choice: "<<i;
  27.            
  28.                    
  29.                      break;
  30.             case 2 : cout<<"\nyour choice: "<<i;//c.print_all_customer();
  31.                      break;
  32.             case 3 : cout<<"\nyour choice: "<<i;//accomodation_booking();
  33.                      break;
  34.             case 4 : cout<<"\nyour choice: "<<i;//breakfast_booking();
  35.                      break;
  36.             case 5 : cout<<"\nyour choice: "<<i;//c.show_all_orders();
  37.                      break;
  38.            
  39.             default : break;
  40.         }
  41.    
  42. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement