#include #include #include #include #include #include #include #include #include #define LEN sizeof(struct student) using namespace std;int n=0;//定义一种全局变量记录学生人数 struct student//定义一种学生信息构造体 { char name[20];//用来存储姓名 char sex[20];//用来存储性别 char yuanxi[20];//用来存储院系 long int id;//用来存储学号 int score[4];//用来存储分数 int total;//用来存储总分数 struct student *next; };vector stu;class Information { public:Information() ;//构造函数
~Information() ;//析构函数
student *creat();//建立链表函数
void output(student *head); int count(student *head);//定义函数 count()记录考生总数 student *insert(student*head);//指针函数*insert()用来添加考生信息
student *cancel(student *head,long int num);//指针函数*cancel()用来删除考生信息
student *find(student *head,long int num);//指针函数*find()用来查找考生信息
void inorder(student *head);//定义 inorder()函数将考生总分从大到小排列并输出 void average( stud