C语言_学生管理系统
这是本人自己的东西,能编译通过了。希望大家下载后仔细阅读源代码。 #include #include #include #include //宏定义 #define length 10 #define MES (struct studentMessage *)malloc(sizeof(struct studentMessage)); #define MAR (struct studentMark *)malloc(sizeof(struct studentMark)); char subname[][9]={"高数","高代","C语言","英语","工概","心健","思修","德育","体育","奖励"}; //定义结构体 typedef struct studentMessage{ char name[15]; int id; char sex[7]; char collage[20]; int Class; struct studentMessage *next; }MESSAGE; typedef struct studentMark{ int id; char name[15]; struct subject{ int subid; char subname[11]; float score; }sub[length]; double total; struct studentMark *next; }MARK; void mainmenu(MESSAGE *,MARK *); void searchmenu(MESSAGE *); int menu(void); MESSAGE *addstudent(MESSAGE *); void scanstuAll(MESSAGE *); void searchstuclass(MESSAGE *); MESSAGE *changestu(MESSAGE *); MESSAGE *change(MESSAGE *); MESSAGE *deletemenu(MESSAGE *); void searchstuone(MESSAGE *); MESSAGE *deletestuone(MESSAGE *); MESSAGE *deletestuall(MESSAGE *); MESSAGE *deletestuclass(MESSAGE *); MARK *addstudentMark(MARK *); void scanstuMarkAll(MARK *); void searchMarkmenu(MARK *); void searchstuMarkone(MARK *); MARK *deleteMarkmenu(MARK *); MARK *deletestuMarkall(MARK *); MARK *deletestuMarkone(MARK *); MARK *changeMark(MARK *); MARK *changestuMark(MARK *); void printscholarship(MARK *); MESSAGE *readfilestu(MESSAGE *); MARK *readfilestuMark(MARK *); void savefilestuMark(MARK *); void savefilestu(MESSAGE *); MARK *readfilestuMark(MARK *); MESSAGE *readfilestu(MESSAGE *); 这都是函数声明哦。 int id; char sex[7]; char collage[20]; int Class; struct studentMessage *next; }MESSAGE; typedef struct studentMark{ int id; char name[15]; struct subject{ int subid; char subname[11]; float score; }sub[length]; double total; struct studentMark *next; }MARK; void mainmenu(MESSAGE *,MARK *); void searchmenu(MESSAGE *); int menu(void); MESSAGE *addstudent(MESSAGE *); void scanstuAll(MESSAGE *); void searchstuclass(MESSAGE *); MESSAGE *changestu(MESSAGE *); MESSAGE *change(MESSAGE *); MESSAGE *deletemenu(MESSAGE *); void searchstuone(MESSAGE *); MESSAGE *deletestuone(MESSAGE *); MESSAGE *deletestuall(MESSAGE *); MESSAGE *deletestuclass(MESSAGE *); MARK *addstudentMark(MARK *); void scanstuMarkAll(MARK *); void searchMarkmenu(MARK *); void searchstuMarkone(MARK *); MARK *deleteMarkmenu(MARK *); MARK *deletestuMarkall(MARK *); MARK *deletestuMarkone(MARK *); MARK *changeMark(MARK *); MARK *changestuMark(MARK *); void printscholarship(MARK *); MESSAGE *readfilestu(MESSAGE *); MARK *readfilestuMark(MARK *); void savefilestuMark(MARK *); void savefilestu(MESSAGE *); MARK *readfilestuMark(MARK *); MESSAGE *readfilestu(MESSAGE *); 这都是函数声明哦。
暂无评论