-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
62 lines (60 loc) · 1.01 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
#include "Utils/BaseUtils.h"
#include "Utils/MaterialUtils.h"
#include "Utils/CategoryUtils.h"
#include "Utils/ManufacturerUtils.h"
#include "Utils/OrderUtils.h"
void control();
int main()
{
introduce();
while (true)
{
control();
}
sayBye();
return 0;
}
void control()
{
printMenu();
int number;
cout << " Chon chuc nang: ";
cin >> number;
cin.ignore();
cout << endl;
switch (number)
{
case 0:
sayBye();
exit(0);
break;
case 1:
{
MaterialUtils mUtils;
mUtils.manage();
break;
}
case 2:
{
ManufacturerUtils manuUtils;
manuUtils.manage();
break;
}
case 3:
{
CategoryUtils cUtils;
cUtils.manage();
}
break;
case 4:
{
OrderUtils oUtils;
oUtils.manage();
}
break;
default:
cout << "Khong co chuc nhap da nhap! "
<< "Moi ban nhap lai chuc nang: " << endl;
break;
}
}