-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
41 lines (34 loc) · 708 Bytes
/
main.cpp
File metadata and controls
41 lines (34 loc) · 708 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
#include "mianFunction.h"
int main() {
int select;//用户选择
while (true){
cout << "\t+---------------------------+\n";
cout << "\t| 1.学 生 |\n";
cout << "\t| 2.老 师 |\n";
cout << "\t| 3.管理员 |\n";
cout << "\t| 0.退 出 |\n";
cout << "\t+---------------------------+\n";
cout << "输入选择:";
cin >> select;
switch (select)
{
case 1://学生
LogIn(STUDENT_FILE, 1);
break;
case 2://老师
LogIn(TEACHER_FILE, 2);
break;
case 3://管理员
LogIn(ADMIN_FILE, 3);
break;
case 0:
printMessage("退出成功!");
return 0;
default:
printMessage("非法输入!");
break;
}
}
system("pause");
return 0;
}