c班级信息管理系统内容摘要:

b=1。 int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,PSTR szCmdLine, int iCmdShow)。 MessageBox ( NULL,确定要删除吗。 , my_message, MB_OK )。 //弹出对话框:“确定要删除吗。 ” do { i。 //将删除数据后面的数据的脚标变小一位 s[h]=s[h+1]。 h++。 }while(hi)。 } } if(b==0) cout您要求删除的对象本来就不存在。 请检查输入的正确性。 cout删除成功。 endl。 cout要继续删除吗。 (y/n)endl。 cinc。 while(c!=39。 y39。 amp。 amp。 c!=39。 n39。 ) { cout指令错误。 请重新输入。 endl。 cinc。 } }while(c==39。 y39。 )。 break。 } case 39。 339。 : //修改录入的学生数据 { char name1[20]。 char sex1[7]。 char spe1[30]。 char bir1[30]。 char miz1[20]。 char tec1[200]。 char add1[200]。 char c。 do { int b=0。 cout请输入您要修改的学 生的姓名: endl。 cinname1。 for(int h=0。 hi。 h++) { if(strcmp(name1,s[h].name)==0) { b=1。 cout请输入新的性别: endl。 cinsex1。 cout请输入新的生日: endl。 cinbir1。 cout请输入新的专业: endl。 cinspe1。 cout请输入新的民族: endl。 cinmiz1。 cout请输入新的特长: endl。 cintec1。 cout请输入新的家庭住址: endl。 cinadd1。 s[h]=stu(s[h].name,s[h].num,sex1,spe1,bir1,miz1,tec1,add1)。 cout学号 \t姓名 \t性别 \t生日 \t专业 \t民族 \t特长 \t家庭住址 endl。 couts[h].num\ts[h].name\ts[h].sex\ts[h].bir\ts[h].spe\ts[h].miz\ts[h].tec\ts[h].addendl。 } } if(b==0) cout您要求修改的对象本来就不存在。 请检查输入的正确性。 endl。 cout修改成功。 要继续吗。 (y/n)endl。 cinc。 if(c!=39。 y39。 amp。 amp。 c!=39。 n39。 ) { cout指令错误。 请重新输入。 endl。 cinc。 } }while(c==39。 y39。 )。 break。 } case 39。 439。 : //按姓名查找 { char name1[20]。 //输入的名字 char c。 do{ int b=0。 cout请输入你要查询的学生姓名 endl。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。