#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define N 10
struct Student
{
char num[15];
char name[15];
char major[10];
int classNo;
int score[3];
};
typedef struct Student STU;
void Input(STU *p,int n);
void Save(STU *p,int n);
void Output(STU *p);
STU Fetch(int studentIndex);
int Max(STU *p,int classNo);
void Sort_select(STU *p);
void Sort_buble(STU *p,int n);
void Sort_insert(STU *p,int n,char M[]);
void Search(STU *p,int classNo,char s,int scoreSum);
void main()
{
STU student[N];
int i,n,m,studentIndex;
char s,M[10];
STU tem;
while(1) {
int id;