下载后可任意编辑超好的学生成绩管理系统顺序表实现的代码含详细注释哦12024 年 4 月 19 日下载后可任意编辑#include #include #include #define LIST_INIT_SIZE 4 //线性表存储空间的初始分配量#define LISTINCREMENT 10 //线性表存储空间的分配增量//学生的定义typedef struct{int num; char name[20]; float english; float math; float database; float sum;22024 年 4 月 19 日下载后可任意编辑 float average;}Student;//顺序表的定义typedef struct{Student *stu;int length;int listsize;}sqlist;//函数 1 录入信息int Input(sqlist *L){int i=1;//为了查找、排序的方便将第一个当哨兵char flag='y';32024 年 4 月 19 日下载后可任意编辑//输入数据while(flag == 'Y' || flag == 'y'){for(i =1; i < L->listsize; ++i){printf("请输入第%d 个同学的信息:\n",L->length);printf("学号:");fflush(stdin);scanf("%d",&L->stu[L->length]
num);printf("姓名:");fflush(stdin);scanf("%s",L->stu[L->length]
name);42024 年 4 月 19 日下载后可任意编辑printf("英语成绩:");fflush(stdin);scanf(