-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
49 lines (44 loc) · 688 Bytes
/
Copy pathmain.cpp
File metadata and controls
49 lines (44 loc) · 688 Bytes
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
#include <iostream>
# include "Hashtable.h"
# include "BST_Tree.h"
# include "admin.h"
# include "staff.h"
# include "customer.h"
using namespace std;
void startProgram()
{
Hashtable H;
BST_Tree T;
H.starthash();
T.load_Server();
}
int main()
{
void startProgram();
int condition=0;
while (condition != 4)
{
cout << "YOU want to login as:\t\t\t\t\t\t" << endl << endl;
cout << "1-ADMIN" << endl;
cout << "2-STAFF" << endl;
cout << "3-CUSTOMER" << endl;
cin >> condition;
if (condition == 1)
{
admin();
}
if (condition == 2)
{
}
if (condition == 3)
{
customer();
}
if (condition == 4)
{
exit(1);
}
}
system("pause");
return 0;
}