main.cpp
#include <iostream>
#include <fstream>
#include <workmanager.h>
#include <worker.h>
using namespace std;
int main()
{
workmanager w;
int chose = 0;
while (true)
{
w.menu();
cout << "请输入您的选择: ";
cin >> chose;
switch (chose)
{
case 0:
cout << "成功退出,欢迎下次使用!" << endl;
system("pause");
exit(0);
break;
case 1:
w.m_add();
break;
case 2:
w.m_show();
break;
case 3:
w.m_delete();
break;
case 4:
w.m_modify();
break;
case 5:
w.m_find();
break;
case 6:
w.m_sort();
break;
case 7:
w.m_clean();
break;
default:
system("cls");
break;
}
}
system("pause");
return 0;
}

浙公网安备 33010602011771号