#include <iostream>
#include <workeManager.h>
#include <boss.h>
#include <manager.h>
#include <employee.h>
using namespace std;
int main()
{
// Worker * worker =NULL;
// worker = new Employee(1,"张三",1);
// worker->showInfo();
// delete worker;
// Worker * worker1 =NULL;
// worker1 = new Boss(1,"张三",1);
// worker1->showInfo();
// delete worker1;
// Worker * worker2 =NULL;
// worker2 = new Manager(1,"张三",1);
// worker2->showInfo();
// delete worker2;
WorkerManager wm;
int choice=0;
while ( true)
{
wm.Show_Menu();
cout<<"请输入你的选择"<<endl;
cin>>choice;
switch (choice)
{
case 0:
/* 退出系统 */
wm.ExitSystem();
break;
case 1:
/* 添加职工 */
wm.Add_Emp();
// system("pause");
// system("cls");
break;
case 2:
/* 显示职工 */
wm.Show_Emp();
break;
case 3:
/* 删除职工 */
wm.Del_Emp();
break;
case 4:
/* 修改职工 */
wm.Mod_Emp();
break;
case 5:
/* 查找职工 */
wm.Find_Emp();
break;
case 6:
/* 排序职工 */
wm.Sort_Emp();
break;
case 7:
/* 清空文档 */
wm.Clean_File();
break;
default:
break;
}
}
system("pause");
system("cls");
return 0;
}