C语言课设学生信息管理系统

C语言课设学生信息管理系统

ID:39347006

大小:81.50 KB

页数:12页

时间:2019-07-01

C语言课设学生信息管理系统_第1页
C语言课设学生信息管理系统_第2页
C语言课设学生信息管理系统_第3页
C语言课设学生信息管理系统_第4页
C语言课设学生信息管理系统_第5页
资源描述:

《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

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

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

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