学生成绩管理系统源代码3351_第1页
学生成绩管理系统源代码3351_第2页
学生成绩管理系统源代码3351_第3页
学生成绩管理系统源代码3351_第4页
学生成绩管理系统源代码3351_第5页
已阅读5页,还剩40页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

I一、课程设计(论文)题目学生成绩管理系统二、本次课程设计(论文)应达到的目的通过数据库大作业课程设计的操作与实践,使学生了解关系数据库的相关理论知识和有关工具软件的使用技巧,在一定程度上提高应用程序的综合开发能力三、本次课程设计(论文)任务的主要内容和要求(包括原始数据、技术参数、1.数据库:原理编程与性能(影印版)(第2版),高等教育出版社,2.数据库系统概论(第4版),高等教育出版社,王珊,萨师煊编著,2006.05;教研室主任(签字)_________________•这次课设我做的是学生成绩管理系统,本系统依据开发要求主要针对于教育系统,完成对日常的教育工作对学生成绩档案及其他信息的数字化管理。开发本系统可使学院教职员工减轻工作压力,比较系统地对教务、教学上的各项服务和现在在各大中小学校,用计算机管理学校的信息已经越来越普遍了。用计算机不但可以提高工作效率,而且还节省了许多人力物力,增强了学校资料的安全性。提高了学校的管理能力,为此,用计算机来管理学校的信息,是非常必要此,开发一套适和大众的、兼容性好的系统是很有必要的,但由于知识积累及时性大打折扣,后面有时间将会将系统设计的全面些,更具有实用性。准备了许多时间来设计表结构,并将各个模块的流程画出来,使系统的各个模块的地方,比如用户界面不够美观,对于出错处理不够等多方面问题,这些都有待进一步改善。 需求分析 6概要设计 7 4C语言程序课程设计一学生成绩管理系统一.设计目的通过数据库大作业课程设计的操作与实践,使学生了解关系数据库的相关理论知识和有关工具软件的使用技巧,在一定程度上提高应用程序的综合开发能力和创新意识、创二.问题描述2.教师信息维护;课程成绩;6.学生查询课程成绩。三.需求分析“学生成绩管理信息系统”包括四个模块:成绩录入、班级统计、年级统计、系统功能。这四个模块既相互联系又相互独立,班级统计、年级统计模块必须以成绩录入(1)成绩录入模块:主要功能用来对学生的成绩进行收集和修改。具体包括学生成绩录入、修改、增加、删除、查询等功能,成绩录入需要分班级、分年级以及某个时间考试的各门功课的成绩。修改要与成绩录入相对应。增加、删除是对基本表的操作。查询条件设置应该齐全,可以班级查询,年级查询,也可以姓名查询,学号查询等主要功能用来对学生的成绩以班级为单位进行处理。具体包括各班学生总5成绩、平均成绩、班级排名及统计班级某分数段内的学生人数;各个学生该科成绩、班级排名及统计班级某分数段内的学生人数。各项统计仅对于某学期某次考试而)年级统计模块:主要功能用来对学生的成绩以年级为单位进行处理。具体包括各年级学生总成绩、年级排名统计年级某分数段内的学生人数;各个学生该科成绩、年级排名及统计、年级某分数段内的学生人数。各项统计仅对于某学期某次考试而言,在统计时,还应注意各年级考试科目不同。4)系统功能模块:关于系统及退出系统。在概要设计里,根据系统需求设计系统EI图,程序流图,系统功能模块图等信了数据源。67年年级*89 (一)、系统的功能分析该学生成绩管理系统是基于网络在线的学生成绩管理系统,在系统中分为大的两个方面:一是教师登录页面、二是学生登录页面。 (1)教师进入学生成绩管理系统的主要功能是:实现添加用户、添加成绩、学籍信息修改、修改密码、查询课程、选课、查询成绩、学籍信息查询、打印等基本功 (2)学生进行学生成绩管量系统的主要功能是:选课、查询成绩、学籍信息查询、打印等基本功能。 实现修改密码、查询课程、修改修改密码图码教师在学生成绩管理系统中能够对所有学生的成绩查看,对学生按学号进行精确查询、按学生姓名进行模糊查询,可以修改自己的登录密码,添加用户,添加学生的成绩,打印学生的学籍信息。学生在系统中的基本功能是对自己所有成绩的查询,课程的查询,个人登录密码的修改,基本信息的查看,选课,打印自己的学籍信息。#inelude<stdio.h>#inelude<string.h>#include<stdlib.h>#inelude<windows.h>{charname[10];charbirthday[10];intCyuyan;hujujiegoustructstudent*next;studentcreatbyinputudentgetlaststudentstructstudentheadstructstudent*Print_menu_main()//主菜单{structstudent*print_table_head()一一------+\n”);{prin一一------+\n”);ntfntfcnprintf("+-------+——+--------+------+\n”);}------------------+-------}-printf(”printf(”printf(”printf(”printf(”printf(”printf(”printf(”printf(”1■•…输入学生\n“)\n");\n");\n");\n");\n");\n");\n");\n");}voidprint_table_bottom(){printf("+____+_____+_____+_____+_______+\n")・}structstudent*Creat_stu_record()//建立链表{structstudent*plaststu=NULL,*pnewstu;charcontinue_input='N';structstudent*head=NULL;while(1){headNULL{head=creat_by_input();print_table_head();print_table_row(head);print_table_bottom();}pnewstucreatbyinput);print_table_head();print_table_row(pnewstu);print_table_bottom();plaststu=get_last_student(head);plaststu->next=pnewstu;}getchar;continue』put=getchar();if(continue_input=='n'||continue_input=='N'){system("cls");Printmenu_main();}}nhead}structstudent*creat_by_input(){structstudent*pnewstu=(structstudent*)malloc(sizeof(structstudent));printf("请输入printf("学号:");scanf("%d",&pnewstu->num);printf("姓名:");scanf("%s",pnewstu->name);printf("出生年月:");scanf("%s",pnewstu->birthday);printf生成绩\n");printf("C语言:");scanf("%d",&(pnewstu->Cyuyan));printf("数据结构:");scanf("%d",&(pnewstu->shujujiegou));pnewstu->next=NULL;newstu}structstudent*get_last_student(structstudent*p){ifp>next==NULL)returngetlaststudentpnext}voidPrint_Stu_Doc(structstudent*head){structstudent*p;charr;print_table_head();headNULL{printfnNoRecords;}for(p=head;p;p=p->next){printf("|%1Od|%1Os|%1Os|%1Od|%1Od|\n",p->num,p->name,p->birthday,p->Cyuyanpshujujiegou);{system("cls");Printmenu_main();}{system("cls");Printmenu_main();}}{charname[10];structstudent*p=head;charcontinue_input;/*intisfound=0;*/scanf("%s",name);printf"查找%s\n",name);print_table_head();while(p!=NULL){if(strcmp(p->name,name)==0){print_table_row(p);ppnext/*isfound=1;*/ppnext}}print_table_bottom();continue』put=getchar();if(continue_input=='n'||continue_input=='N'){system("cls");Printmenu_main();}searchbyname(head);}structstudent*search_by_id(structstudent*head)〃按学号查找{charcontinue_input;/*intisfound=0;*/scanf("%d",&id);printf找%d\n",id);print_table_head();while(p!=NULL){fpnumid{print_table_row(p);ppnext/*isfound=1;*/}ppnext}print_table_bottom();getcharcontinue』put=getchar();if(continue_input=='n'||continue_input=='N'){system("cls");Printmenu_main();}searchbyidhead;}structstudent*modify_record_by_id(structstudent*head)〃按学号修改{structstudent*p=head;charcontinue_input;scanfdid);while(p!=NULL){fpnumid}Lprintfd生\n”,id);{printf生信息:\n");printf("学号:");scanf("%d",&(p->num));printf("姓名:");scanf("%s",&(p->name));printf("C语言:");scanf("%d",&(p->Cyuyan));printf("数据结构:");scanf("%d",&(p->shujujiegou));print_table_head();print_table_row(p);print_table_bottom();}printf("继续修改学生信息getchar();continue』put=getchar();if(continue_input=='y'||continue_input=='Y')creat_by_input();{system("cls");Printmenu_main();}nhead}structstudent*modify_record_by_name(structstudent*head)〃按姓名修改{dcharcontinue_input;\n");\n");scanfs",name);while(p!=NULL){if(strcmp(p->name,name)==0)}Lprintfs\n",name);{printf生信息:\n");printf("学号:");scanf("%d",&(p->num));printf("姓名:");scanf("%s",&(p->name));printf("出生年月:");scanf("%s",&(p->birthday));printf("C语言:");scanf("%d",&(p->Cyuyan));printf("数据结构:");scanf("%d",&(p->shujujiegou));print_table_head();print_table_row(p);print_table_bottom();}printf("继续修改学生信息getchar();continue』put=getchar();if(continue_input=='y'||continue_input=='Y')creat_by_input();{system("cls");Printmenu_main();}nhead}structstudent*insert_record(structstudent*head)〃插入{structstudent*ptr1;structstudent*ptr,*stud;structstudent*ptr2=head;charcontinue_input='N';printf("scanf("%d",&id);stud=creat_by_input();tudifhead=NULL){head=ptr;head->next=NULL;}elseif(head->num==id){ptr->next=head;}{while(ptr2!=NULL){ptrptr>next;ptrnumid{ptr1->next=ptr;ptr->next=ptr2;break;}}}print_table_head();print_table_row(ptr);print_table_bottom();etcharcontinue』put=getchar();if(continue_input=='y'||continue_input=='Y')returninsertrecord(head);{system("cls");Print_menu_main();returnhead;}}structstudent*Delete_record_by_id(structstudent*head)〃按学号删除{structstudent*p=head,*ppre=NULL;charcontinue_input;printf请输入要删除的学号:");scanf("%d",&id);while(p!=NULL){fpnumid}L{printf除学号为\n“,p_>num);arcontinue』put=getchar();if(continue_input=='y'||continue_input=='Y'){eadp{eadpnextprintf("\n");free(p);}{while(ppre!=NULL){ifppre_>next==p){ppre_>next=p->next;free(p);}pprepprenext;}}}//Print_menu_main();}getcharcontinue』put=getchar();if(continue_input=='y'||continue_input=='Y')recordbyidhead{system("cls");Printmenu_main();nhead}}structstudent*Delete_record_by_name(structstudent*head)〃按姓名删除{structstudent*p=head,*ppre=NULL;charname[10];charcontinue_input;printf请输入要删除的姓名:");scanf("%s",name);while(p!=NULL){if(strcmp(p->name,name)==0)break;ppnext}L{\n");\n");otoend}",p->name);printf("\n");getchar();{{continue』put=getchar();if(continue_input=='y'||continue_input=='Y')eadp{eadpnextfree(p);}{while(ppre!=NULL){ifppre_>next==p){ppre_>next=p->next;free(p);}pprepprenext;}}}//elsePrint_menu_main();harcontinue』put=getchar();if(continue_input=='Y'||continue_input=='y')leterecordbynamehead{system("cls");Print_menu_main();returnhead;}}structstudent*Sorting_record_by_id(structstudent*head)〃按学号排序{ntiOjkrstructstudent*pt1,*pt2,*pt,m;headNULL{system("cls");Printmenu_main();}{system("cls");Printmenu_main();}}{ptheadnextforptheadptpt=pt->next)for(j=1;j<i;j++){xtforkk<i-j+1;k++){if(pt1->num>pt2->num){ptpt;nextptnextptnextpt}pt1=pt2;pt2=pt1->next;}}}print_table_head();for(pt=head;pt;pt=pt->next){{printf("|%10d|%10s|%10s|%10d|%10d|\n",pt->num,pt->name,pt->birthday,pt->Cyuyan,pt->s}tmain{structstudent*head=NULL;structstudent*p;intchoice)ntselect;charm;charr;system("colore");\n");\n");\n");\n");AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\门")tf\n");printf(".............................................................................\n");printf"请按照提示信息完成操作\n");\n");\n");while(choice!=0){startifscanf%d",&choice)){if(choice>7||choice<0){gotostart;}tonext}ifscanfcm{otostart}nextswitch(choice){case1:system("cls");head=Creat_stu_record();case2:system("cls");Print_Stu_Doc(head);casesystem"cls");canfdselectct{case1:search_by_name(head);break;case2:search_by_id(head);break;case3:system("cls");Print_menu_main();break;break;tfnscanf("%d",&select);witchselect{case1:system("cls");modify_record_by_id(head);break;case2:system("cls");modify_record_by_name(head);break;case3:system("cls");Print_menu_main();break;}case5:system("cls");head=insert_record(head);break;casesystem("cls");canfdselectswitch(select){case1:head=Delete_record_by_id(head);break;case2:head=Delete_record_by_name(head);break;case3:Print_menu_main();break;}casesystem("cls");Sortingrecordbyidhead;etchar{system("cls");Printmenu_main();}{system("cls"

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论