哪错了啊家人们
#include <stdio.h>
struct student
{
int no;
double usual;
double end;
double score;
}stud[3];
main()
{struct student *p;
for(p=stud;p<stud+3;p++)
{scanf("%d%d%d",&p->no,&p->usual,&p->end);
p->score=(p->usual*0.4)+(p->end*0.6);
}
for(p=stud;p<stud+3;p++)
printf("学号为:%d\n总成绩为:%d\n",p->no,p->score);
}
