-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
72 lines (70 loc) · 2.51 KB
/
main.cpp
File metadata and controls
72 lines (70 loc) · 2.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
//#include"customerderived.h"
#include"userderived.h"
#include<iostream>
#include<stdlib.h>
//int room[50];
using namespace std;
int main()
{
int ch;
int t=1;
char op;
User u;
cout<<endl;
cout<<"***********************************************************WELCOME****************************************************";
cout<<endl;
cout<<"\n\t\t\t--------------------------------------------------------------------------";
//cout<<"\n";
// cout<<"\n\t\t\t||***********************HOTEL MANAGEMENT SYSTEM************************||";
// cout<<"\n\t\t\t||----------------------------------------------------------------------||";
// cout<<endl<<"\t\t\t||\t\t\t\t\t\t\t\t\t||";
// cout<<endl;
do
{
cout<<"\n\t\t\t||***********************HOTEL MANAGEMENT SYSTEM************************||";
cout<<"\n\t\t\t||----------------------------------------------------------------------||";
cout<<endl<<"\t\t\t||\t\t\t\t\t\t\t\t\t||";
cout<<endl;
cout<<"\t\t\t||\t\t\t 1.RECEPTIONIST\t\t\t\t||";
cout<<endl<<"\t\t\t||\t\t\t\t\t\t\t\t\t||";
cout<<endl;
cout<<"\t\t\t||\t\t\t 2.MANAGER\t\t\t\t\t||";
cout<<endl<<"\t\t\t||\t\t\t\t\t\t\t\t\t||";
cout<<endl;
cout<<"\t\t\t||\t\t\t 3.EXIT\t\t\t\t\t||";
cout<<endl<<"\t\t\t||\t\t\t\t\t\t\t\t\t||";
cout<<endl<<"\t\t\t||\t\t\t\t\t\t\t\t\t||";
cout<<"\n\t\t\t**************************************************************************";
cout<<endl;
cout<<endl;
cout<<"\t\t\t\t\tEnter the choice :";
cin>>ch;
switch(ch)
{
case 1:Receptionist r;
r.login();
t=0;
cout<<"\nDo you want to go to user menu?(y/n)";
cin>>op;
system("cls");
break;
case 2:Manager m;
m.login();
t=0;
//op='\0';
cout<<"\nDo you want to go to user menu ?(y/n)";
cin>>op;
system("cls");
break;
case 3:u.exit();
t=0;
op='n';
break;
default:cout<<"\n Enter only valid choice";
cin>>ch;
t=1;
break;
}
}while(op=='y'||op=='Y');
//u.exit();
}