#include /* 一个学生的信息 */
struct Student{
int id; // 学号
double m_grade; // 数学成绩
double E_grade; // 英语成绩
struct Student *next;
};
struct Student* create_st(){
struct Student* st = (struct Student*)malloc(sizeof(struct Student));
printf(" 请输入学号: ");
scanf("%d", &(st->id));
printf("请输入数学成绩: ");
scanf("%lf", &(st->m_grade));
printf("请输入英语成绩: ");
scanf("%lf", &(st->E_grade));
printf("一个学生信息输入完毕\n");
st->next = NULL;
return st;
}
/* 学生信息统计列表(单向链表) */
struct St_list{
struct Student *head; // 指向表头部的指针
struct Student *tail; // 指向表尾部的指针
int count; // 当前列表中一共有多少个学生信息
};
/* 初始化学生表 */
void init(struct St_list *sl){