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;
}

posted @ 2024-06-24 10:27  愿此刻~永恒  阅读(52)  评论(0)    收藏  举报