#include #include #define LEN 100#define OVERFLOW -2#define ERROR 0typedef int Status;typedef struct { struct student * elem; int len; int listsize;}list; typedef struct student { char name[10]; int grade;}STUDENT; //增加 Status ListInsert(list &L, int i) { if (i<1 || i>L.len + 1) return ERROR; if (L.len >= L.listsize) L.elem = (STUDENT*)malloc((LEN + 1) * sizeof(STUDENT)); if (!L.elem) exit(OVERFLOW); STUDENT* q, * p; q = &L.elem[i - 1]; for (
简陋版学生成绩管理系统最先出现在Python成神之路。
共有 0 条评论