用链表实现学生信息管理系统主程序文件

ID:35418401

大小:57.74 KB

页数:6页

时间:2019-03-24

用链表实现学生信息管理系统主程序文件_第1页
用链表实现学生信息管理系统主程序文件_第2页
用链表实现学生信息管理系统主程序文件_第3页
用链表实现学生信息管理系统主程序文件_第4页
用链表实现学生信息管理系统主程序文件_第5页
资源描述:

《用链表实现学生信息管理系统主程序文件》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库

1、//tKrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwKvoidmain()handle_menul();//Krjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjw

2、rjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwJ/*菜单处理函数*///trjwrjw

3、结果”);*/print(headl);break;case4:/*printf(Mt输出链表2的结果M);*/print(head2);break;case5:game3();/*调用删除模块*/break;case6:game4();/*调用插入模块*/break;case7:game5();/*调用查找模块*/break;case8:printf(nt再见!n);return;//<{><{><{><{><{><{><{><{><{><{><{>JJrjwrjwrjwrjwrjwrjwrjwrj

4、wrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjw***//*菜单选择函数:intmemi_select()*//KKrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwintmenu_select()intcn;for(;;){printf(HM);printf(nn);printf(nn);printf(ntl.追加法建表j;prin

5、tfC*弋2•插入法建表n);printf(nt3.输出链表lM);printf(Mt4.输出链表2M);printf(nt5.删除一个结点n);printf(nt6.插入一个结点j;printf(nt7.查找一个结点n);printf(nt8.退出程序n);printf(nt选择l-8:n);scanf(H%d*&cn);//gets(s);//cn=atoi(s);if(cn

6、

7、cn>8)printf(nt输入错误,重选elsebreak;returncn;/

8、Krjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjw/*对链表插入操作*//*函数原型:voidgame4();*//*函数参数:void*//*函数返回值:void*/Krjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrj

9、wrjwvoidgame4(){charch;STD*stud,*head=head1;system(HCLS'');printf(nt仅限在表1中插入!”);printf(Mt输入要插入结点的学号和姓名(以空格隔开):”);stud=(STD*)malloc(LEN);scanf(M%*cn);scanf(*'%d%sn,&stud->num,&stud->name);if(stud->num<0){printf(Mt输入的学号不能为负数,请重新选择插入!n);return;headl=insert(

10、head,stud);printf(Mt输入回车键返回!");getchar();system(nCLSn);printf(Mn);/Krjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwr

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
正文描述:

《用链表实现学生信息管理系统主程序文件》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库

1、//tKrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwKvoidmain()handle_menul();//Krjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjw

2、rjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwJ/*菜单处理函数*///trjwrjw

3、结果”);*/print(headl);break;case4:/*printf(Mt输出链表2的结果M);*/print(head2);break;case5:game3();/*调用删除模块*/break;case6:game4();/*调用插入模块*/break;case7:game5();/*调用查找模块*/break;case8:printf(nt再见!n);return;//<{><{><{><{><{><{><{><{><{><{><{>JJrjwrjwrjwrjwrjwrjwrjwrj

4、wrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjw***//*菜单选择函数:intmemi_select()*//KKrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwintmenu_select()intcn;for(;;){printf(HM);printf(nn);printf(nn);printf(ntl.追加法建表j;prin

5、tfC*弋2•插入法建表n);printf(nt3.输出链表lM);printf(Mt4.输出链表2M);printf(nt5.删除一个结点n);printf(nt6.插入一个结点j;printf(nt7.查找一个结点n);printf(nt8.退出程序n);printf(nt选择l-8:n);scanf(H%d*&cn);//gets(s);//cn=atoi(s);if(cn

6、

7、cn>8)printf(nt输入错误,重选elsebreak;returncn;/

8、Krjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjw/*对链表插入操作*//*函数原型:voidgame4();*//*函数参数:void*//*函数返回值:void*/Krjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrj

9、wrjwvoidgame4(){charch;STD*stud,*head=head1;system(HCLS'');printf(nt仅限在表1中插入!”);printf(Mt输入要插入结点的学号和姓名(以空格隔开):”);stud=(STD*)malloc(LEN);scanf(M%*cn);scanf(*'%d%sn,&stud->num,&stud->name);if(stud->num<0){printf(Mt输入的学号不能为负数,请重新选择插入!n);return;headl=insert(

10、head,stud);printf(Mt输入回车键返回!");getchar();system(nCLSn);printf(Mn);/Krjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwrjwr

显示全部收起
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。
关闭