.C程序学生管理系统以下是用c语言编写的学生成绩管理系统的简单代码,可以用vc运行(供参考)#includestdio.h#includestdlib.h#includestring.htypedefstructstudent//定义学生{charname[10];intnumber;charsex[2];intmath;integlish;intclanguge;intaverage;}student;typedefstructunit//定义接点{studentdate;专业资料word.structunit*next;}unit;unit*build()//建立链表并返回指针{unit*p;if((p=(unit*)malloc(sizeof(unit)))==NULL){printf(=>初始化失败!);return0;}else{p->next=NULL;p->date.number=0;//头结点存放学生人数printf(初始化成功!屜屮);returnp;}}void增加学生head)*add(unit//{专业资料word.unit*p,*q;intm,n=0;q=head->next;p=(unit*)malloc(sizeof(unit));printf(=>请输入新生姓名!屜屮);gets(p->date.name);fflush(stdin);printf(=>请输入学号!屜屮);while(n==0){scanf(╜層,&m);fflush(stdin);if(q==NULL)n=1;while(q){if(q->date.number==m){printf(=>你输入的学号与已有同学的学号相同,请重新输入!屜屮);q=head->next;break;}else专业资料word.{q=q->next;if(q==NULL)n=1;}}}p->date.number=m;printf(=>请输入性别!屜屮);gets(p->date.sex);fflush(stdin);printf(=>请输入数学成绩屜屮);scanf(╜層,&m);fflush(stdin);p->date.math=m;printf(=>请输入英语成绩屜屮);scanf(╜層,&m);fflush(stdin);p->date.eglish=m;printf(=>请输入c语言成绩屜屮);scanf(╜層,&m);fflush(stdin);p->date.clanguge=m;p->date.average=(p->date.math+p->date.eglish+p->date.clanguge);next;head=q->p;head->=next专业资料word.p->next=q;head->date.number++;}voiddeletion(unit*head)//删除一名学生{unit*p=head->next,*q=head;charN[10];printf(=>请输入你想删除的学生姓名!屜屮);gets(N);fflush(stdin);if(p==NULL)printf(=>系统无学生可删除!屜屮);while(p){if(strcmp(p->date.name,N)==0){q->next=p->next;head->date.number--;printf(=>删除%s成功!屜屮,p->date.name);free(p);break;专业资料word.}else{p=p->next;q=q->next;if(p==NULL)printf(=>你要删除的学生不存在,删除失败!屜屮);}}}intdisplay(unit*head)//显示学生信息{unit*p=head->next;intm,n=0;charN[10];if(p==NULL){printf(=>系统无学生!屜屮);return0;专业资料word.}while(n==0){printf(****************************************************************???????屜屮);printf(=>请选择你的操作!屜屮);printf(=>\t\t\t1.显示所有\t2.按姓名查找\n\t\t\t3.按学号查找\t4.返回主菜单屜屮);scanf(╜層,&m);fflush(stdin);switch(m){case1:printf(\=>该系统拥有%d名学生!屜屮湜,head->date.number);p=head->next;printf(\姓名\t学号\t性别\t数学\t英语\tc语言\t综合屜屮湜);while(p){printf(屜瑜猥屜?層瑜猥屜?層瑜搥屜?層瑜搥屜屮,p->date.name,p->date.专业资料word.number,p->date.sex,p->date.math,p->date.eglish,p->date.clanguge,p->date.average);p=p->next;}break;case2:printf(=>请输入查找姓名!屜屮);gets(N);fflush(stdin);p=head->next;while(p){if(strcmp(p->date.name,N)==0){综合语言\t\t\printf(姓名\t学号\t性别\t数学英语\tc屜屮);printf(屜瑜猥屜?層瑜猥屜?層瑜搥屜?層瑜搥屜屮,p->date.name,p->date.number,p->date.sex,p->date.math,p->date.eglish,p->date.clanguge,p->date.average);break;专业资料word.}else{p=p->next;if(p==NULL)printf(=>你要查的学生不存在!);}}break;case3:printf(=>请输入查找学号!屜屮);scanf(╜層,&m);fflush(stdin);p=head->next;while(p){if(p->date.number==m){综合\tc语言\t英语性别姓名printf(\\t学号\t\t数学\t屜屮);printf(屜瑜猥屜?層瑜猥屜?層瑜搥屜?層瑜搥屜屮,p->date.name,p->date.number,p->date.sex,p->date.math,专业资料word.p->date.eglish,p->date.clanguge,p->date.average);break;}else{p=p->next;if(p==NULL)printf(=>你要查的学生不存在!屜屮);}}break;case4:n=1;break;}}1;return}intrange(unit*head)//排序...