cin>>a;
if(a==\{
cout<<\数据如下:\ display(head);
getch(); menu1(head);
}
else if(a==\
{
cout<<\请输入需要删除者的姓名:\
cin>>a; while(1) { }
cout<<\删除成功!\getch(); menu1(head);
if(del1(head,a) != 0) { } else break;
del(del1(head, a));
}
{
else if(a==\
enter(head);
getch();
menu1(head);
}
else if(a==\{
cout<<\输入名字:\ cin>>a;
search(head, a);
cout<<\查找成功=====\
getch(); menu1(head);
}
else if (a == \
{
save(head);
cout<<\保存成功=====\getch(); menu1(head);
}
else if (a == \
{
break;
}
else { }
cout<<\无效指令,请重新输入:\
} }
void menu2(node& head)
exit(1);
{
bool b=false;
string a;
cout<<\学生信息管理==========\cout<<\查看所有信息\ cout<<\查询信息\cout<<\关闭程序\
cout<<\cout< cout<<\请选择操作指令:\while(b==false) { cin>>a; if(a==\ { cout<<\数据如下:\ display(head); getch(); system(\menu2(head); } { else if(a==\ cout<<\输入名字:\ cin>>a; search(head, a); cout<<\查找成功=====\ getch(); system(\menu2(head); } else if (a == \ { break; } } { cout<<\无效指令,请重新输入:\else } } #include system(\exit(1); node head; string name,grade,sex,yard; string c,english,math; int flag; int password; ifstream read (\if (read) { } cout<<\请选择管理员登陆(1) 或者 学生登录(2):\cin>>flag; if(flag==1) { cout<<\请输入管理员密码:\cin>>password; if(password!=passwd) exit(0); while (read>>name>>grade>>sex>>yard>>c>>english>>math) { } init(head,name,grade,sex,yard,c,english,math); } switch(flag) { case 1:menu1(head);break; case 2:menu2(head);break; default:cout<<\输入错误\} return 0; }