#include #define MAX_STU 100 #define MAX_COURSE 10 #define MAX_NAME_SIZE 10 void temp_score(int nstu, int ncrs, int s[MAX_STU][MAX_COURSE+2],int ss[MAX_STU]){ for (int i = 0; i < nstu; i++) { for (int j = 0; j < (nstu - 1) - i; j++) { if (ss[j] < ss[j + 1]) { int temp2 = ss[j]; ss[j] = ss[j+1]; ss[j + 1] = temp2; for (int k = 0; k < ncrs; k++) { int temp = s[j][k]; s[j][k] = s[j + 1][k]; s[j + 1][k] = temp; } } } } } void input_scores(int nstu, int ncrs, char (*name)[MAX_NAME_SIZE], int s[MAX_STU][MAX_COURSE+2],int ss[MAX_STU]){ for(int i=0;i