typedef struct Student
{
long num;
char name[10];
char sex[4];
int age;
int score;
}StudentType; //命名结构体名
#define Maxsize 100 //宏定义
typedef StudentType DataType;
void ListContrast(StudentType *L,int n)
{
int i,j;
int temp;
int a[] = {L -> score};
for(i = 0;i < n;i++)
{
for(j = 0;j < n-1-i;j++)
{
if(a[j-1] < a[j])
{
temp = a[j];
a[j] = a[j-1];
a[j-1] = temp;
}
}
}
}