欢迎来到天天文库
浏览记录
ID:39347006
大小:81.50 KB
页数:12页
时间:2019-07-01
《C语言课设学生信息管理系统》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、开始显示菜单输入ch的值ch=?1.调用creat()函数2.调用display()函数3.调用dele()函数非法选项9.调用load()函数08.调用save()函数7.调用sort()函数6.调用search()函数5.调用modify()函数4.调用add()函数结束流程图:全局变量structstud{charname[20];longnum;intage;charsex;intscore[3];chartele[12];structstud*next;}子程序1.creat()函数功能:创建链
2、表,提示输入学生信息,储存到链表中,录入完成后输入y继续,输入n停止,返回主菜单2.display()函数功能:显示当前已经存入链表的信息3.dele()函数功能:删除链表中学生信息,可按姓名或学号删除4.add()函数功能:按学号插入学生信息5.modify()函数功能:修改链表中学生信息6.search()函数功能:查找学生信息,可按学号或姓名查找7.sort()函数功能:对信息进行排序,可实现分别对三门成绩排序8.save()函数功能:将链表中的数据保存到指定文件9.load()函数功能:将指定文件
3、中已有的数据读入链表源程序#include#include#include#includestructstud{charname[20];longnum;intage;charsex;intscore[3];chartele[12];structstud*next;}main(){structstud*head;structstud*creat(void);voiddisplay(structstud*head);structst
4、ud*dele(structstud*head);structstud*add(structstud*head);structstud*modify(structstud*head);voidsearch(structstud*head);voidsave(structstud*head);structstud*sort(structstud*head);voidsave(structstud*head);structstud*load();charch;head=NULL;for(;;){clrscr(
5、);/*清屏函数*/printf(“ttWelcometostudentinformationmanagementsystem”);printf(“t**************************************************************”);printf(“ttt1:Entertheinformation”);printf(“ttt2:Listtheinformation”);printf(“ttt3:Deletet
6、heinformation”);printf(“ttt4:Addtheinformation”);printf(“ttt5:Modifytheinformation”);printf(“ttt6:Searchtheinformation”);printf(“ttt7:Sorttheinformation”);printf(“ttt8:Savetheinformation”);printf(“ttt9:Loadtheinformation”);pr
7、intf(“ttt0:Exit“);printf(“tttEnteryourchoice:”);fflush(stdin);ch=getchar();getchar();switch(ch){case‘1’:head=creat();break;case‘2’:display(head);system(“pause”);break;case‘3’:head=dele(head);system(“pause”);break;case‘4’:head=add(head);system(“p
8、ause”);break;case‘5’:head=modify(head);system(“pause”);break;case‘6’:search(head);system(“pause”);break;case‘7’:head=sort(head);system(“pause”);break;case‘8’:save(head);system(“pause”);break;case‘9’:head=load();brea
此文档下载收益归作者所有