void StaffManage::xianshi()
{
system("cls");
cout << "/---------------高校人员信息管理系统---------------\\n";
cout << "| |\n";
cout << "| 2.显示功能 |\n";
cout << "| |\n";
cout << "\--------------------------------------------------/\n";
cout << "教师信息" << endl;
for (auto i : tea)
cout << i.num << " " << i.name << " " << i.xingbie<< " " << i.age << " " << i.xibu << " " << i.major << " " << i.prof << endl;
cout << endl;
cout << "实验员信息" << endl;
for (auto i : ass)
cout << i.num << " " << i.name << " " << i.xingbie << " " << i.age << " " << i.job << " " << i.dep << endl;;
cout << endl;
cout << "行政人员信息" << endl;
for (auto& i : sta)
cout << i.num << " " << i.name << " " << i.xingbie << " " << i.age << " " << i.job << " " << i.dep <<""<<i.mianmao << endl;
cout << endl;
cout << "教师兼行政人员信息" << endl;
for (auto& i : aaa)
cout << i.num << " " << i.name << " " << i.xingbie << " " << i.age << " " << i.job << " " << i.dep << " " << i.mianmao << " " << i.xibu << " " << i.major << " " << i.prof << endl;
system("pause");
int pos;
for (pos = 0; pos < count; pos++)//循环搜索
{
if (strcmp( IndexType::num, indexTable[pos].num) == 0 && !indexTable[pos].delTag)//比较来判断
break;
}
if (pos < count) //如果比最大值要小,那么一定是找到了的
{
file.seekg(indexTable[pos].position, ios::beg);
pstaff->Read(file);
pstaff->Show();
delete pstaff;
}
else
{
cout << "查询失败" << endl;
file.clear();
}
}