-
Notifications
You must be signed in to change notification settings - Fork 0
/
职工管理系统.cpp
66 lines (62 loc) · 1019 Bytes
/
职工管理系统.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
#include<iostream>
#include "workmanege.h"
#include "worker.h"
//void test()
//{
// worker* worker = NULL;
// worker = new Employee(1, "张三", 1);
// worker->showInfo();
// delete worker;
//
// worker = new Manager(2, "李四", 2);
// worker->showInfo();
// delete worker;
//
// worker = new Boss(3, "王五", 3);
// worker->showInfo();
// delete worker;
//}
int main()
{
//test();
workmanege wm;
while (true)
{
wm.showmenu();
cout << "请输入要使用的功能:" << endl;
int select;
cin >> select;
switch (select)
{
case 0: //退出系统
wm.exitsystem();
break;
case 1: //添加职工
wm.addEmp();
break;
case 2: //显示职工
wm.showEmp();
break;
case 3: //删除职工
wm.delEmp();
break;
case 4: //修改职工
wm.changeEmp();
break;
case 5: //查找职工
wm.findEmp();
break;
case 6: //排序职工
wm.sortEmp();
break;
case 7: //清空文件
wm.cleanEmp();
break;
default:
system("cls");
break;
}
}
system("pause");
return 0;
}