欢迎来到天天文库
浏览记录
ID:58875937
大小:174.50 KB
页数:14页
时间:2020-09-21
《学生选课系统(详细设计说明书).doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、..1引言21.1编写目的21.2背景21.3定义21.4参考资料22程序系统的结构23程序1(标识符)设计说明33.1程序描述123.2功能123.3性能123.4输人项133.5输出项133.6算法133.7流程逻辑133.8接口133.9存储分配133.10注释设计133.11限制条件133.12测试计划133.13尚未解决的问题144程序2(标识符)设计说明14.....详细设计说明书1引言1.1编写目的为了更好的描述软件结构以及系统各组成成分之间的相互关系,因此撰写详细设计说明书。1.2背景a.待开发的软件系统的名称:交通大
2、学学生选课系统;b.本系统主要为方便广大学选课,避免选课高峰期选不上等问题;c.本系统的受益人为:老师、学生和系统管理人员。1.3定义详见概要设计说明书。1.4参考资料【1】海藩,软件工程导论【M】:清华大学2008年2月第五版【2】王珊、萨师煊,数据库系统概论【M】:高等教育2006年5月第四版2程序系统的结构该详细设计只针对学生信息管理中的信息查询和信息维护两个子功能作说明,其程序流程图如下:.....图4-1学生信息查询模块程序流程图图4-2学生信息管理模块程序流程图.....3程序1(标识符)设计说明#include3、o.h>#includeintN1,N2,kk1,kk2,kk3;structcouse*head1;structstudent*head2;structcouse//课程信息结构体{intnum1;charname1[20];intscore;intnelepeo;//课程已选人数intMelepeo;//课程人数上限structcouse*next;};structstudent//学生信息结构体{intnum2;charname2[20];intnelenum[50];//已选课程编号intnelen;//已4、选课程数量structstudent*next;};voidMs(){for(kk1=0;kk1<1100;kk1++)for(kk2=0;kk2<1200;kk2++)for(kk3=0;kk3<1200;kk3++);}voidkeyboardc()//录入课程子函数(从键盘录入){structcouse*p1,*p2;N1=0;p1=p2=(structcouse*)malloc(sizeof(structcouse));printf("课程编号t课程名称t学分t课程人数上限");scanf("%d%s%d%d",&p5、1->num1,p1->name1,&p1->score,&p1->Melepeo);p1->nelepeo=0;head1=NULL;while(p1->num1!=0){N1=N1+1;if(N1==1)head1=p1;.....elsep2->next=p1;p2=p1;p1=(structcouse*)malloc(sizeof(structcouse));scanf("%d%s%d%d",&p1->num1,p1->name1,&p1->score,&p1->Melepeo);p1->nelepeo=0;}p2->next6、=NULL;}voidfilec()//录入键盘子函数(从文件录入){FILE*fp;charfilepath[20];structcouse*p1,*p2;N1=0;printf("输入要读入的文件路径:");getchar();gets(filepath);if((fp=fopen(filepath,"r"))==NULL){printf("找不到%s文件!",filepath);exit(0);}p1=p2=(structcouse*)malloc(sizeof(structcouse));fscanf(fp,"%d%s%d7、%d%d",&p1->num1,p1->name1,&p1->score,&p1->nelepeo,&p1->Melepeo);head1=NULL;while(!feof(fp)){N1=N1+1;if(N1==1)head1=p1;elsep2->next=p1;p2=p1;p1=(structcouse*)malloc(sizeof(structcouse));fscanf(fp,"%d%s%d%d%d",&p1->num1,p1->name1,&p1->score,&p1->nelepeo,&p1->Melepeo);}p2-8、>next=NULL;}voidinputc()//录入课程主函数{inti;printf("ttt录入课程信息");printf("1.从键盘录入");printf("2.从文件录入");....
3、o.h>#includeintN1,N2,kk1,kk2,kk3;structcouse*head1;structstudent*head2;structcouse//课程信息结构体{intnum1;charname1[20];intscore;intnelepeo;//课程已选人数intMelepeo;//课程人数上限structcouse*next;};structstudent//学生信息结构体{intnum2;charname2[20];intnelenum[50];//已选课程编号intnelen;//已
4、选课程数量structstudent*next;};voidMs(){for(kk1=0;kk1<1100;kk1++)for(kk2=0;kk2<1200;kk2++)for(kk3=0;kk3<1200;kk3++);}voidkeyboardc()//录入课程子函数(从键盘录入){structcouse*p1,*p2;N1=0;p1=p2=(structcouse*)malloc(sizeof(structcouse));printf("课程编号t课程名称t学分t课程人数上限");scanf("%d%s%d%d",&p
5、1->num1,p1->name1,&p1->score,&p1->Melepeo);p1->nelepeo=0;head1=NULL;while(p1->num1!=0){N1=N1+1;if(N1==1)head1=p1;.....elsep2->next=p1;p2=p1;p1=(structcouse*)malloc(sizeof(structcouse));scanf("%d%s%d%d",&p1->num1,p1->name1,&p1->score,&p1->Melepeo);p1->nelepeo=0;}p2->next
6、=NULL;}voidfilec()//录入键盘子函数(从文件录入){FILE*fp;charfilepath[20];structcouse*p1,*p2;N1=0;printf("输入要读入的文件路径:");getchar();gets(filepath);if((fp=fopen(filepath,"r"))==NULL){printf("找不到%s文件!",filepath);exit(0);}p1=p2=(structcouse*)malloc(sizeof(structcouse));fscanf(fp,"%d%s%d
7、%d%d",&p1->num1,p1->name1,&p1->score,&p1->nelepeo,&p1->Melepeo);head1=NULL;while(!feof(fp)){N1=N1+1;if(N1==1)head1=p1;elsep2->next=p1;p2=p1;p1=(structcouse*)malloc(sizeof(structcouse));fscanf(fp,"%d%s%d%d%d",&p1->num1,p1->name1,&p1->score,&p1->nelepeo,&p1->Melepeo);}p2-
8、>next=NULL;}voidinputc()//录入课程主函数{inti;printf("ttt录入课程信息");printf("1.从键盘录入");printf("2.从文件录入");....
此文档下载收益归作者所有