-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
50 lines (43 loc) · 1.23 KB
/
Copy pathmain.cpp
File metadata and controls
50 lines (43 loc) · 1.23 KB
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
#include "InternetCafeSystem.h"
int main() {
setupConsole();
InternetCafeSystem system;
int choice;
do {
clearScreen();
cout << main_menu;
if (!readInt("请输入您的选择:", choice)) {
pauseScreen();
continue;
}
clearScreen();
switch (choice) {
case 1:
system.overviewComputers();
break;
case 2:
system.manageComputers();
break;
case 3:
system.manageMembers();
break;
case 4:
system.searchComputerById();
break;
case 5:
system.checkoutComputer();
break;
case 0:
system.saveData();
cout << "********************************\n";
cout << "** 西理网吧管理系统即将关闭 **\n";
cout << "********************************\n";
pauseScreen();
break;
default:
cout << "无效选择,请重新输入!" << endl;
pauseScreen();
}
} while (choice != 0);
return 0;
}