c语言课程设计报告学生成绩管理系统
p3=p3->next; else
{ printf("The numder is Repetition,Input again!:\n");
goto repeat1;/*当输入的学号已经存在,程序报错,返回前面重新输入*/ } } } }
printf("Input The Name:");
scanf("%s",&p1->name);/*输入学生姓名*/
printf("Input yuwen Score(0~100):");/*输入语文成绩,成绩应在0-100*/ scanf("%f",&p1->yuwen);
while(p1->yuwen<0||p1->yuwen>100) {getchar();
printf("Is wrong,Input again:");/*输入错误,重新输入语文成绩直到正确为止*/ scanf("%f",&p1->yuwen);}
printf("Input shuxue Score(0~100):");/*输入数学成绩,成绩应在0-100*/ scanf("%f",&p1->shuxue);
while(p1->shuxue<0||p1->shuxue>100) {getchar();
printf("Is wrong,Input again:");/*输入错误,重新输入数学成绩直到正确为止*/ scanf("%f",&p1->shuxue);}
printf("Input yingyu Score(0~100):");/*输入英语成绩,成绩应在0-100*/ scanf("%f",&p1->yingyu);
while(p1->yingyu<0||p1->yingyu>100) {getchar();
printf("Is wrong,Input again:");
scanf("%f",&p1->yingyu);}/*输入错误,重新输入英语成绩直到正确为止*/ head=NULL;
while(p1->number!=0) { n=n+1; if(n==1) head=p1; else
p2->next=p1; p2=p1;
p1=(score *)malloc(ABC);/*开辟一个新单元 以下的注释内容同上*/ printf("Please Input Students Message,Piess(0)is out!\n"); repeat2:printf("Input the numder(N.>0):"); scanf("%d",&p1->number); while(p1->number<0) {getchar();
printf("Is wrong, Input again the numder:"); scanf("%d",&p1->number);} if(p1->number==0) goto end; else
{p3=head;