#include
#include
#include
#define m_l 10
#define m_num 30
#define m_cs 6
typedef struct student
{
long num ;
char name[m_l];
float score[m_cs];
float sum;
float aver;
}STU;
int menu(void);
void Readscore(STU stu[],int n,int m);
void Aversumofeverystudent(STU stu[],int n,int m);
void Aversumofeverycourse(STU stu[],int n,int m);
void Sortbyscore(STU stu[],int n,int m,int (*compare)(float a,float b));
int Ascending(float a,float b);
int Descending(float a,float b);
void swapfloat(float *x,float *y);
void swaplong(long *x,long *y);
void swapchar(char x[],char y[]);
void Assortbynum(STU stu[], int n, int m);
void Sortbyname(STU stu[], int n, int m);
void Searchbynum(STU stu[], int n, int m);
void Searchbyn