#include 〈iostream
h〉 #include 〈iomanip
h〉 #include #include 〈stdlib
h〉 #include 〈string〉 #include 〈process
h〉 #include 〈stdio
h〉 #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 ino