怎么用c语言做信息管理系统,学生信息管理系统C语言怎么做

跟别人问重复了,你们难道是一个老师教的啊?网上很多类似的,你参考下:#include#includestructstudent{charname[30];floatmath;floatchinese;floatenglish;floataverage;};intMenuChoice(void);intEnterAccount(void);voidEnter(structstudent*fst);voidAmend(structstudent*src);voidDelete(structstudent*next);voidPrint(structstudent*out);main(){structstudentone[100]=,*look=one;intmenu,t;while((menu=MenuChoice())!=0)if(menu>=1&&menuname,""))printf("学号:%d

姓名:%s

语文成绩:%。

1f

数学成绩:%。1f

英语成绩:%f

平均"成绩:%。1f

",t,look->name,look->chinese,look->math,look->english,look->average);elseprintf("对不起,该学号不存在!

");break;case3:Amend(look);break;case4:Delete(look);break;}}elseif(menu==5)Print(one);elseprintf("错误的请求!

");return0;}intMenuChoice(void){intchoice;printf("请选择:

""1-新建学生信息

""2-查找学生信息

""3-修改学生信息

""4-删除学生信息

""5-打印学生信息

""0-退出

");scanf("%d",&choice);returnchoice;}intEnterAccount(void){intret;printf("请输入学号:

");scanf("%d",&ret);if(ret>=1&&retname,&fst->chinese,&fst->math,&fst->english,&fst->average);}voidAmend(structstudent*src){intt;printf("请选择:

""1-修改学生姓名

""2-修改学生语文成绩

""3-修改学生数学成绩

""4-修改学生英语成绩

""5-修改学生平均成绩

");scanf("%d",&t);switch(t){case1:printf("请输入学生的新名字

");scanf("%s",src->name);break;case2:printf("请输入学生新的语文成绩

");scanf("%f",&src->chinese);break;case3:printf("请输入学生新的数学成绩

");scanf("%f",&src->math);break;case4:printf("请输入学生新的英语成绩

");scanf("%f",&src->english);break;case5:printf("请输入学生新的平均成绩

");scanf("%f",&src->average);break;}}voidDelete(structstudent*next){strcpy(next->name,"");next->math=next->english=next->chinese=next->average=0。

0;}voidPrint(structstudent*out){structstudent*up;for(up=out;outname,""))printf("学号:%d

姓名:%s

语文成绩:%。1f

数学成绩:%。1f

英语成绩:%。

1f

平均成绩:%。1f

",out-up+1,out->name,out->chinese,out->math,out->english,out->average);}。

全部