Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void print_menu(){
- cout << "--------------------Welcom to " << Hotelname << " -----------------------" << endl;
- string menu[] ={
- "n new custemer\t\t1",
- "p print all customer\t2",
- "a accomodation booking\t3",
- "b breakfast booking\t4",
- "s show all orders\t5",
- "e end of programm\t0",
- "\nyour choice: "
- };
- for(int i=0;i<7;i++)
- {
- cout <<menu[i]<< endl;
- };
- }
- void menu(){
- print_menu();
- int i = -1;
- cin >> i;cin.ignore(32000, '\n');
- switch(i){
- case 1 :cout<<"\nyour choice: "<<i;
- break;
- case 2 : cout<<"\nyour choice: "<<i;//c.print_all_customer();
- break;
- case 3 : cout<<"\nyour choice: "<<i;//accomodation_booking();
- break;
- case 4 : cout<<"\nyour choice: "<<i;//breakfast_booking();
- break;
- case 5 : cout<<"\nyour choice: "<<i;//c.show_all_orders();
- break;
- default : break;
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement