学生信息管理系统程序设计课程设计报告(编辑修改稿)内容摘要:
case 5:clrscr()。 print5()。 break。 case 6:clrscr()。 print6()。 break。 case 7: return 0。 } } return 0。 } include include /*struct student{ int studentnumber。 char name[20]。 char sex。 char profession[30]。 char clas[20]。 char tel[20]。 struct student *next。 }。 struct course{ int studentnumber。 int coursenumber。 char studentname[20]。 char coursename[20]。 int term。 float CR。 float normalmark。 float experimentmark。 float testmark。 float finalmark。 struct course *next。 }。 struct newcourse{ char stuname[20]。 char courname[20]。 int cournumber。 float couscore。 struct newcourse *next。 }。 struct stuaver{ char name[20]。 float aver。 struct stuaver *next。 }。 */ //统计每学期平均分 void account(struct course*chead1,int cournumber1,int term1){ struct course*cp。 int flag=0。 int n=0。 float sum=0。 cp=chead1。 if(cp==NULL){ printf(there is no course\n)。 } while(cp!=NULL){ if(cpcoursenumber==cournumber1amp。 amp。 cpterm==term1){ sum+=cpfinalmark。 n++。 flag=1。 } cp=cpnext。 } if(flag==0){ printf(there is no this course\n)。 } else printf(the average of this course is %f\n,(sum/n))。 } //统计不及格学生 void searchfail(int term1,int coursenumber1,struct course *head1){ struct course*cp。 int flag=0。 cp=head1。 if(cp==NULL){ printf(there is no data in it\n)。 } else{ while(cp!=NULL){ if(cpcoursenumber==coursenumber1amp。 amp。 cpterm==term1) if(cpfinalmark60) {printf(%s score is %f\n,cpstudentname,cpfinalmark)。 flag=1。 } cp=cpnext。 } if(flag==0){ printf(no student fail)。 } } } include include /*struct student{ int studentnumber。 char name[20]。 char sex。 char profession[30]。 char clas[20]。 char tel[20]。 struct student *next。 }。 struct course{ int studentnumber。 int coursenumber。 char studentname[20]。 char coursename[20]。 int term。 float CR。 float normalmark。 float experimentmark。 float testmark。 float finalmark。 struct course *next。 }。 struct newcourse{ char stuname[20]。 char courname[20]。 int cournumber。 float couscore。 struct newcourse *next。 }。 struct stuaver{ char name[20]。 float aver。 struct stuaver *next。 }。 */ //查找学生信息 void searchstudent(int studentnumber1,struct student *head){ struct student *p。 int flag=0。 p=head。 while(p!=NULL) { if(pstudentnumber==studentnumber1){ printf(*****************************************************************\n)。 printf(the student`s number is %d\n,pstudentnumber)。 printf(the student`s name is %s\n,pname)。 printf(the student`s sex is %c\n,psex)。 printf(the student`s profession is %s\n,pprofession)。 printf(the student`s class is %s\n,pclas)。 printf(the student`s tel is %s\n,ptel)。 printf(*****************************************************************\n)。 flag=1。 break。 } p=pnext。 } if(flag==0){ printf(*****************************************************************\n)。 printf(soorry,cannot find the student\n)。 printf(*****************************************************************\n)。 } } //查找课程信息 void searchcourse(int studentnumber1,int term1,struct course *chead){ struct course *cp。 int flag=0。 cp=chead。 while(cp!=NULL) { if(cpstudentnumber==studentnumber1amp。 amp。 cpterm==term1){ flag=1。 printf(*****************************************************************\n)。 printf(the %s`s final score is %f\n,cpcoursename,cpfinalmark)。 printf(*****************************************************************\n)。 } cp=cpnext。 } if(flag==0){ printf(there is no this course\n)。 } } //查找课程函数 void searchallstudentscore(int coursenumber1,int term1,struct student *head,struct course *chead){ struct student *p=head。 struct course *cp=chead。 int flag=0。 while(p!=NULL){ while(cp!=NULL){ if(cpstudentnumber==pstudentnumberamp。 amp。 cpcoursenumber==coursenumber1amp。 amp。 cpterm==term1){ flag=1。 printf(*****************************************************************\n)。 printf(the student is %s\n,pname)。 printf(term is %d\n,cpterm)。 printf(course number is %d\n,cpcoursenumber)。 printf(course name is %s\n,cpcoursename)。 printf(the normal mark is %f\n,cpnormalmark)。 printf(the experiment mark is %f\n,cpexperimentmark)。 printf(the test mark is %f\n,cptestmark)。 printf(the final mark is %f\n,cpfinalmark)。 printf(*****************************************************************\n)。 break。 } cp=cpnext。 } p=pnext。 } if(flag==0){ printf(there is no this course\n)。 } } include include /*struct student{ int studentnumber。 char name[20]。 char sex。 char profession[30]。 char clas[20]。 char tel[20]。 struct student *next。 }。 struct course{ int studentnumber。 int coursenumber。 char studentname[20]。 char coursename[20]。 int term。 float CR。 float normalmark。 float experimentmark。 float testmark。 float finalmark。 struct course *next。 }。 struct newcourse{ char stuname[20]。 char courname[20]。 int cournumber。 float couscore。 struct newcourse *next。 }。 struct stuaver{ char name[20]。 float aver。 struct stuaver *next。 }。 */ //删除一个学生信息 struct student *delestudent(int studentnumber1,struct student *head){ struct student *p1,*p2。 int flag=0。 p1=head。 p2=p1next。 if(head==NULL){ printf(there is no student in it.\n)。 return head。 }else{ while(p1。学生信息管理系统程序设计课程设计报告(编辑修改稿)
相关推荐
毕业论文(设计)报告纸 共 23 页 第 9 页 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 计界面 如图 42所示。 图 42系统主界面 管理模块 系统 管理模块 包括 添加用户 、 修改密码 和权限管理。 下面分绍这 三 方面的内容。 添加用户 界面设计
点,再好有条件组合的查询,可以实现按男女生分类查询,也可以按专业、寝室号、籍贯等分类查询,以便学校方面管理人员可以很方便的查询想要的数据,以便进行统一管理,统一安排。 在我们经过认真地可行性研究,系统基本上做到了在技术、经济、运行、法律上的可行。 因此 ,相信在按照计划上实施的前提下,全系统的设计将会按时、高质量完成。 所以,系统研制和开发是可以马上进行的。 2 需求分析 需求分析工作是软件生存
对于我以后工作能力的培养具有重要的意义。 随着时代的发展,计算机技术越来越深入各行各业,为广大的用户提供了更为周到和便捷的服务。 目前各行各业广泛使 用专用系统,其内容范围跨越了教育科研、文化事业、金融、商业、新闻出版、娱乐、体育等各个领域,其用户群十分庞大,因此,设计开发好一个专用系统对一个机构 (或部门 )的发展十分重要。 近年来,随着用户要求的不断提高及计算机科学的迅速发展
理。 通过本系统,把本校内部查询学生信息、教务信息、学生选课各个环节进行有效地计划、组织和控制。 通过本校内部的信息,依据统一数据信息进行管理,把任何一块信息所产生的数据变动及时地反映给其它相关信息,做到数据共享。 本系统主要信息流程为:教务信息维护接受学生的信息,学生信 息查询根据教务信息维护的学生信息做出对所接收的信息合理性进行判断,并交于信息维护进行相应的修改,再把信息存入数据库中。
除号中的代码 private void butChu_Click(object sender, EventArgs e) { sign = 4。 strOne =。 KJClick = true。 } //=号中的代码 private void butDY_Click(object sender, EventArgs e) { strEnd =。 if (strOne == || strEnd
图 18 管理员界面子菜单 系统 界面 图 19 管理员界面子菜单 学生管理 界面 图 20 管理员界面 子菜单 系统设置 界面 18 学生信息查询界面 图 21 学生信息查询 学生信息查询结果显示 图 22 学生信息查询显示 添加学生信息界面 在没有输入学号或者姓名,以及某一项时,会弹出一个对话框进行提示,如没有输入学号时 : 图 23 添加学生信息 19 修改学生信息界面 ( 学号是主键