#include #include #define N 3 struct Student {char xuehao[10]; int banji; char name[20]; float grade1; float grade2; float grade3; }; int main() {struct Student st[N]={{"10001",11,"Zhang",99.5,88.5,89.5}, {"10002",12,"Yang",77.9,56.5,87.5}, {"10003",11,"Liang",92.5,99.0,60.5}}; struct Student a,b; scanf("%s%d%s%f%f%f",&a.xuehao,&a.banji,a.name,&a.grade1,&a.grade2,&a.grade3); int i,j,k,l; for(i=0;ist[l].banji){b=st[j];st[j]=st[l];st[l]=b;}} printf("%d %s %s %.1f %.1f %.1f\n",st[0].banji,st[0].xuehao,st[0].name,st[0].grade1,st[0].grade2,st[0].grade3); for(k=1;k