for(j=0;j
void AverSumofEveryCourse(STU stu[], int n, int m) { int i,j; float sum[COURSE_NUM],aver[COURSE_NUM]; for(j=0;j
void SortbyScore(STU stu[], int n, int m) { int i,j,k,t; for(i=0;i
{ for(t=0;t void SwapFloat(float *x, float *y) { float temp; temp=*x; *x=*y; *y=temp; } void SwapLong(long *x, long *y) { long temp; temp=*x; *x=*y; *y=temp; } void SwapChar(char x[], char y[]) { char temp[MAX_LEN]; strcpy(temp,x); strcpy(x,y); strcpy(y,temp); } void SortbyNum(STU stu[], int n, int m) { int i,j,k,t; for(i=0;i } if(k!=i) { for(t=0;t void SortbyName(STU stu[], int n, int m) { int i,j,t; for(i=0;i void SearchbyNum(STU stu[], int n, int m) { long number; int i,j; printf(\ scanf(\ for(i=0;i { printf(\ for(j=0;j void SearchbyName(STU stu[], int n, int m) { char name[MAX_LEN]; int i,j; printf(\ scanf(\ for(i=0;i void StatisticAnalysis(STU stu[], int n, int m) { int i,j,t[6]; for(j=0;j
相关推荐: