#include typedef struct{ int Id; int class; 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