-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.cpp
63 lines (54 loc) · 1.23 KB
/
main.cpp
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
#include <bits/stdc++.h>
#include "Room.h"
#include "Room.cpp"
#include "Guest.h"
#include "Date.h"
using namespace std;
int main()
{
int choice;
int no,type,rate;
int c;
system("cls");
do{
cout << "\n\n\tChoose:" << endl;
cout << "1. Check availability \n2. Book Room\n3. Search a record\n4. Find complete record\n5. Delete a record\n0. Exit" <<endl;
cin >>choice;
switch (choice){
case 1: {
int b;
Room h;
b=h.chooseRoom();
c=h.roomNo;
no=h.getNo();
type=h.getType();
rate=h.getRate();
}
break;
case 2: {cout<<"room\n\n";
int c;
Room r;
c=r.chooseRoom();
}
break;
case 3: {
Guest g;
g.searchRecord();
}
break;
case 4: {
Guest g;
g.putdata();
}
break;
case 5:{
Guest g;
g.deleteRecord();
}
break;
case 0: exit(0);
default: cout<<"Choose a valid option\n\n";
}
}while(choice !=0);
return 0;
}