#include #include typedef struct { int id; int class; char name[20]; float a,b,c; float total; }Student; void sort(Student *person,int len) { int i; int j; for(i=0;iperson[j].class||(person[k].class==person[j].class&&person[k].total