C语言教务管理系统2000行代码.docx

C语言教务管理系统 一、程序结构图 二、程序运行截图 1. 个人信息简介 2. 修改颜色 3. 注册界面 4. 信息保存至文件 5. 登录界面 6. 管理员录入信息 7. 学生信息录入 8. 学生成绩录入 9. 学生课程表录入 10. 学生信息查询界面 11学生信息查询 12. 学生成绩查询 13. 学生课表查询 三、代码(一个cpp) #includestdio.h #includestdlib.h #includestring.h #includectype.h #include conio.h #includewindows.h #define student_num 1000 /*定义1000个学生*/ #define teacher_num 5 /*定义5个老师(管理员)*/ int is_my_student(struct student *p,int *size); /*声明 返回第i+1个学生的函数*/ int is_my_teacher(struct teacher *p,int *size); /*声明 返回第i+1个老师的函数*/ int length_student_name(char *p); /*声明 验证用户名函数*/ int length_student_password(char *p); /*声明 验证密码长度函数*/ int length_teacher_name(char *p); /*声明 验证用户名函数*/ int length_teacher_password(char *p); /*声明 验证密码长度函数*/ int show_menu_login(); /*声明 登录菜单函数*/ int show_menu_register(); /*声明 注册菜单函数*/ int show_teacher_select(); /*声明 教师录入菜单函数*/ int show_student_select(); /*声明 学生查询菜单函数*/ int student_register(struct student *ptr_student,int *size); /*声明 学生注册函数*/ int teacher_register(struct teacher *ptr_teacher,int *size); /*声明 老师注册函数*/ int vaild_student_name(char *p); /*声明 验证用户名函数*/ int vaild_student_password(char *p); /*声明 验证密码函数*/ int vaild_teacher_name(char *p); /*声明 验证用户名函数*/ int vaild_teacher_password(char *p); /*声明 验证密码函数*/ int vaild_two_password(char *p1,char *p2); /*声明 验证两次密码是否相同函数*/ int yes_no_return(); /*声明 选择是否返回上一层函数*/ void load(); /*声明 加载函数*/ void register_(int *count1,int *count2); /*声明 注册函数*/ void display_student(struct student stu); /*声明 显示学生信息函数*/ void display_teacher(struct teacher tea); /*声明 显示老师信息函数*/ void student_file1(); /*将保存的学生的账号密码存入文件中*/ void student_file2(); /*将保存的学生的个人信息存入文件中*/ void student_file3(); /*将保存的学生的成绩存入文件中*/ void teacher_file(); /*将保存的老师的账号密码存入文件中*/ void input_information(int count); /*声明 输入学生信息函数*/ void input_score_menu(int count); /*声明 输入学生成绩函数*/ void color(); /*声明 选择窗体颜色函数*/ void print_stu_information(int count_stu); /*声明 输出账号为num的学生的信息函数*/ void

文档评论(0)

1亿VIP精品文档

相关文档