-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
53 lines (50 loc) · 1006 Bytes
/
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
#include "Hashtable.h"
#include "BST_Tree.h"
#include "Customer.h"
#include "admin.h"
#include "staff.h"
#include "string.h"
void boot()
{
Hashtable H;
BST_Tree T;
H.starthash();
T.load_Server();
}
int main()
{
void boot();
int condition = 0;
while (condition != 4)
{
cout << "Welcome to the bank" << endl;
cout << "Choose one of the following options:" << endl;
cout << "1. Admin" << endl;
cout << "2. Customer" << endl;
cout << "3. Staff" << endl;
cout << "4. Exit" << endl;
cin >> condition;
if (condition == 1)
{
admin();
}
else if (condition == 2)
{
Customer();
}
else if (condition == 3)
{
Staff();
}
else if (condition == 4)
{
condition = 4;
}
else
{
cout << "Invalid input" << endl;
}
}
system("pause");
return 0;
}