forked from nermadie/PBL2-Movies-Ticket-Booking-System-CLI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
79 lines (76 loc) · 2.17 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#include "./DangNhap_DangKy/SignIn.cpp"
#include "./DangNhap_DangKy/Register.cpp"
void DangNhap_DangKy()
{
PhanMoDau();
Menu:
system("cls");
TextColor(15);
cout << "\t\t\t\t *********************************************" << endl;
cout << "\t\t\t\t DANG NHAP HOAC DANG KY " << endl;
cout << "\t\t\t\t *********************************************" << endl;
TextColor(12);
cout << "\n\n\t\t\t\t\t -DANG NHAP HOAC DANG KY-";
TextColor(14);
cout << "\n\t\t\t _______________________________________________________________________";
cout << "\n\t\t\t|"
<< " \t\t|";
cout << "\n\t\t\t|"
<< " 1.Dang nhap \t\t|";
cout << "\n\t\t\t|"
<< " \t\t|";
cout << "\n\t\t\t|"
<< " 2.Dang ki \t\t|";
cout << "\n\t\t\t|"
<< " \t\t|";
cout << "\n\t\t\t|"
<< " 3.Thoat \t\t|";
cout << "\n\t\t\t|_______________________________________________________________________|";
int chon;
cout << "\n\n\t\t\t\t\t\tNhap lua chon :";
cin >> chon;
while (chon < 0 || chon > 3)
{
cout << "\n\n\t\t\t\t\t\tNhap lua chon :";
cin >> chon;
}
switch (chon)
{
case 1:
system("cls");
SignIn::DangNhap();
cout << endl;
system("pause");
cout.flush();
break;
case 2:
system("cls");
Register::NhapThongTinKhachHang();
cout << endl;
system("pause");
cout.flush();
goto Menu;
break;
case 3:
exit(0);
break;
}
}
int main()
{
try
{
fflush(stdin);
DangNhap_DangKy();
}
catch (const char *msg)
{
cout << endl
<< "\t\t\t\t\t" << msg;
}
catch (string msg)
{
cout << endl
<< "\t\t\t\t\t" << msg;
}
}