#include #define N 3 struct stu_info { int num; float math,physics,english,sum,average; }; struct stu_info stu[N]; void sort(struct stu_info *stu) { int i,j; struct stu_info tmp; for(i=0;iaverage>(stu+j+1)->average) { tmp = *(stu+j); *(stu+j) = *(stu+j+1); *(stu+j+1) = tmp; } } } return; } void input(void) { int i; for(i=0;i