-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path职工管理.cpp
More file actions
68 lines (64 loc) · 1.01 KB
/
Copy path职工管理.cpp
File metadata and controls
68 lines (64 loc) · 1.01 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
61
62
63
64
65
66
67
68
#include <iostream>
#include "workManager.h"
#include "worker.h"
#include "employee.h"
#include "manager.h"
#include "boss.h"
using namespace std;
#include <fstream>
//测试员工多态
//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(){
workManager wm;
while(1){
//创建一个变量来接收输入
int choice = 0;
wm.showmenu();
cout << "请输入的你的Choose: " << endl;
cin >> choice;
switch(choice){
case 0:
wm.exitWM();
break;
case 1:
wm.Add_Emp();
break;
case 2:
wm.show_Emp();
break;
case 3:
wm.delete_Emp();
break;
case 4:
wm.fix_Emp();
break;
case 5:
wm.find_Emp();
break;
case 6:
wm.Sort_Emp();
break;
case 7:
wm.clean();
break;
default:
system("cls");
break;
}
}
system("pause");
return 0;
}