答
兄弟,啥语言嘛?
不说语言单说要求有啥用啊?c语言#include#includestruct stu{ int grade1,grade2,grade3,count,average; stu*next;};void main(){ stu*head=NULL,*tail,*p; int num,i=1,good_num=0,pass_num=0; printf("请输入全班学生人数: "); scanf("%d",&num); for(;igrade1,&tail->grade2,&tail->grade3); tail->count=tail->grade1+tail->grade2+tail->grade3; tail->average=tail->count/3; tail->next=NULL;}else{ p=(stu*)malloc(sizeof(stu)); tail->next=p; tail=p; printf("请输入第%d名学生的3门课程分数: ",i); scanf("%d %d %d",&tail->grade1,&tail->grade2,&tail->grade3); tail->count=tail->grade1+tail->grade2+tail->grade3; tail->average=tail->count/3; tail->next=NULL;} } p=head; i=1; while(p) {printf("第%d个学生的总分为:%d平均分为: %d\n",i,p->count,p->average);if(p->average>=85){ good_num++;}else if(p->average>=60){ pass_num++;}p=p->next;i++; } printf("全班学生成绩优秀人数为:%d\n全班学生成绩通过人数为:%d\n",good_num,pass_num);}