#include <iostream> #include <stdlib.h> #include <string> using namespace std; int main() { system("color 70"); cout << "==================================================长春工业大学管理系统================================================" << endl<<endl<<endl; int selete,n=2,n1,n2,n3,n4,n5; char number1[20], number2[20], number3[20], lock1[20], lock2[20], lock3[20]; cout << "1.学生" << " " << "2.教师" << " " << "3.管理员" << endl << endl << endl; cout << "请选择您的身份:" << endl << endl << endl; cin >> selete; system("cls"); if (selete == n) { while (1) { system("cls"); system("color E2"); cout << "======================================================教师管理界面======================================================" << endl << endl << endl; cout << "请输入您的工号:"; cin >> number1; cout << "请输入您的密码:"; cin >> lock1; system("cls"); cout << "======================================================登入成功======================================================" << endl << endl << endl; cout << "|| 1.工作管理||" << " " << "||2.课程管理||" << " " << "||3.员工福利||" << endl; cout << " " << endl; cout << "|| 4.学校简介||" << " " << "||5.奖励查询||" << " " << "||6.工资发放||" << endl; cout << "您要查询:" << endl; cin >> n2; system("cls"); switch (n2) { case 1: cout << "======================================================工作管理======================================================" << endl << endl << endl; cout << "语文:李威涛 " << " " << "数学:哈哈 " << " " << "英语: 哈哈" << endl; cout << " " << endl; cout << "程序: 王一丹" << " " << "物理: 哈哈" << " " << "化学: 哈哈" << endl << endl << endl; break; case 2: cout << "======================================================课程管理======================================================" << endl << endl << endl; cout << "WEB 前端技术" << " " << "java" << " " << "phtyon" << endl; cout << " " << endl; cout << "HTML 前端技术" << " " << "C#" << " " << "弃学" << endl << endl << endl; break; case 3: cout << "======================================================员工福利======================================================" << endl << endl << endl; cout << "缴纳五险一金,包吃包住,996工作制度" << endl << endl << endl << endl; break; case 4: cout << "======================================================学校简介======================================================" << endl << endl << endl; cout << "长春工业大学坐落于吉林省长春市,目前有三个校区,20多个附属院校" << endl << endl << endl; break; case 5: cout << "======================================================奖励查询======================================================" << endl << endl << endl; cout << "您最近的奖励积分成绩是: 20.3" << endl; cout << "如果成绩达到50分,学校一次性发放奖金10000元" << endl << endl << endl; break; case 6: cout << "======================================================工资发放======================================================" << endl << endl << endl; cout << "您的工资135642元。已转账至开发银行!" << endl << endl << endl; break; default: cout << "您输入的指令有误,不能够继续进行操作! " << endl; break; } cout << "如果想还回上一页:请随意输入一个整数!" << endl; cin >> n4; if (n4== 0) { break; } } } else if (selete < n) { while (1) { system("cls"); system("color E2"); cout << "======================================================学生管理界面======================================================" << endl << endl << endl; cout << "请输入您的工号:"; cin >> number2; cout << "请输入您的密码:"; cin >> lock2; system("cls"); system("color 70"); cout << "======================================================登入成功======================================================" << endl << endl << endl; cout << "|| 1.成绩查询||" << " " << "||2.选课管理||" << " " << "||3.论文交纳||" << endl; cout << " " << endl; cout << "|| 4.学校简介||" << " " << "||5.绩分查询||" << " " << "||6.学费交纳||" << endl; cout << "您要查询:" << endl; cin >> n1; system("cls"); system("color E2"); switch (n1) { case 1: cout << "======================================================成绩查询======================================================" << endl << endl << endl; cout << "语文: 86" << " " << "数学: 96" << " " << "英语: 110" << endl; cout << " " << endl; cout << "程序: 86" << " " << "物理: 96" << " " << "化学: 110" << endl << endl << endl; break; case 2: cout << "======================================================选课管理======================================================" << endl << endl << endl; cout << "WEB 前端技术" << " " << "java" << " " << "phtyon" << endl; cout << " " << endl; cout << "HTML 前端技术" << " " << "C#" << " " << "弃学" << endl << endl << endl; break; case 3: cout << "======================================================论文缴纳======================================================" << endl << endl << endl; cout << "正在缴纳" << endl << endl << endl << endl; break; case 4: cout << "======================================================学校简介======================================================" << endl << endl << endl; cout << "长春工业大学坐落于吉林省长春市,目前有三个校区,20多个附属院校" << endl << endl << endl; break; case 5: cout << "======================================================绩点查询======================================================" << endl << endl << endl; cout << "您最近的绩点成绩是: 20.3" << endl<<endl<<endl; break; case 6: cout << "======================================================学费缴纳======================================================" << endl << endl << endl; cout << "你已完成缴纳" << endl<<endl<<endl; break; default: cout << "您输入的指令有误,不能够继续进行操作! " << endl; break; } cout << "如果想返回上一步,请随意输入一个整数!" << endl; cin >> n4; if (n4 == 0) { break; } } } else { while (1) { system("cls"); system("color E2"); cout << "======================================================管理员界面======================================================" << endl << endl << endl; cout << "请输入您的工号:"; cin >> number3; cout << "请输入您的密码:"; cin >> lock3; system("cls"); system("color 70"); cout << "======================================================登入成功======================================================" << endl << endl << endl; cout << "|| 1.成绩管理||" << " " << "||2.选课管理||" << " " << "||3.论文交纳||" << endl; cout << " " << endl; cout << "|| 4.学校简介||" << " " << "||5.工资管理||" << " " << "||6.学费收取||" << endl; cout << "您要查询:" << endl; cin >> n3; system("cls"); system("color E2"); switch (n3) { case 1: cout << "======================================================成绩管理======================================================" << endl << endl << endl; cout << "语文 " << " " << "数学" << " " << "英语" << endl; cout << " " << endl; cout << "程序" << " " << "物理" << " " << "化学" << endl; break; case 2: cout << "======================================================选课管理======================================================" << endl << endl << endl; cout << "WEB 前端技术" << " " << "java" << " " << "phtyon" << endl; cout << " " << endl; cout << "HTML 前端技术" << " " << "C#" << " " << "弃学" << endl; break; case 3: cout << "======================================================论文缴纳======================================================" << endl << endl << endl; cout << "以收取21032份,还差253份" << endl << endl << endl << endl; break; case 4: cout << "======================================================学校简介======================================================" << endl << endl << endl; cout << "长春工业大学坐落于吉林省长春市,目前有三个校区,20多个附属院校" << endl; break; case 5: cout << "======================================================工资发放======================================================" << endl << endl << endl; cout << "工资已发放" << endl; break; case 6: cout << "======================================================学费收取======================================================" << endl << endl << endl; cout << "已缴纳完成" << endl; break; default: cout << "您输入的指令有误,不能够继续进行操作! " << endl; break; } cout << "如果想返回上一个请随意输入一个整数" << endl; cin >> n5; if (n5 == 0) { break; } } } return 0; }