C 语 言 编 写 的 班 级 信 息 管 理 系 统 有 班 级 信 息 录 入 , 班 级 信 息 查 询 , 班 级 信 息 修 改 , 班 级 信息 全 部 显 示 。 录 入 的 信 息 有 :班 级 级 别 专业 班 主任 总人数 男生人数 女生人数。 代码: #include #include #include #include #define NULL 0 #define LEN sizeof(struct student) #define FILE_DATA_PATH "c:\student.txt" struct student { long int num; char name[20]; int age; char sex[4]; char birthday[10]; char address[30]; long int tele_num; char E_mail[20]; struct student *next; }; int TOTAL_NUM = 0; struct student *head = NULL; void welcome(); void mainmenu(); void record(); void insert(struct student *stu); void display(struct student *stu); void displayAll(); void query(); void query_by_num(); void query_by_name(); void readData(); void writeData(); void freeAll(); void del(); void change(); void devise(struct student *p); int main() { char userName[9]; char userPWD[7]; int i; welcome(); for(i = 0; i < 3; i++) { printf("\n 管理员初始用户名和密码均为admin\n"); printf("请输入您的用户名:"); scanf("%s", userName); printf("\n 请输入您的密码:"); scanf("%s", userPWD); if ((strcmp(userName,"admin")==0) && (strcmp(userPWD,"admin")==0)) { //用户名和密码正确,显示主菜单 mainmenu(); break; } else { if (i < 2) { //用户名或密码错误,提示用户重新输入 printf("用户名或密码错误,请重新输入!"); } else { //连续3 次输错用户名或密码,退出系统。 printf("您已连续3 次将用户名或密码输错,系统将退出!"); } } } return 0; } //显示欢迎信息 void welcome() { printf("+---------------------------+\n"); printf("| |\n"); printf("| 欢迎使用学生信息管理系统 |\n"); printf("| |\n"); printf("+---------------------------+\n"); } //系统主菜单 void mainmenu() { int choice; choice = -1; readData(); printf("\n 温馨提示:为...