-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathManager.cpp
More file actions
60 lines (54 loc) · 1.52 KB
/
Copy pathManager.cpp
File metadata and controls
60 lines (54 loc) · 1.52 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
51
52
53
54
55
56
57
58
59
60
#include"Manager.h"
Manager::Manager()
{
}
Manager::Manager(string username, string password)
{
this->username = username;
this->password = password;
}
void Manager::openMenu()
{
system("cls");
cout << "\t\t\t\t" << " 欢迎"+this->username+"管理员登录" << endl;
cout << "\t\t\t\t" << "============================" << endl;
cout << "\t\t\t\t" << "| 1. 添加账号 |" << endl;
cout << "\t\t\t\t" << "| |" << endl;
cout << "\t\t\t\t" << "| 2. 查看账户 |" << endl;
cout << "\t\t\t\t" << "| |" << endl;
cout << "\t\t\t\t" << "| 3. 查看机房 |" << endl;
cout << "\t\t\t\t" << "| |" << endl;
cout << "\t\t\t\t" << "| 4. 清空预约 |" << endl;
cout << "\t\t\t\t" << "| |" << endl;
cout << "\t\t\t\t" << "| 0. 注销登录 |" << endl;
cout << "\t\t\t\t" << "============================" << endl;
}
void Manager::addPerson()
{
int c;
cout << "\t\t 1.学生" << endl;
cout << "\t\t 2.教师" << endl;
cout << "\t\t请输入您要添加的账号类型:";
cin >> c;
string id;
switch (c)
{
case 1:
mysqlCon::sign_up_stu(); break;
case 2:
mysqlCon::sign_up_tea(); break;
default:cout << "\t\t您的输入有误,请重新输入!" << endl; system("pause"); system("cls"); break;
}
}
void Manager::showPerson()
{
mysqlCon::query_info();
}
void Manager::showRoom()
{
mysqlCon::query_room();
}
void Manager::clearFile()
{
mysqlCon::del();
}