You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
2.3 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

// 大学信息管理系统.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
//
#include <cstdlib>
#include <iostream>
#include "date.h"
#include "person.h"
#include "student.h"
#include "teacher.h"
#include "undergraduate.h"
#include "graduate.h"
#include "undergraduateManager.h"
#include"graduateManager.h"
int main(int argc, const char* argv[])
{
int choiceN;
UnderGraduateManager unMan;
GradateManager grMan;
//TAManager TAMan
cout << "********************************************************" << endl;
cout << "*|*| |*|*" << endl;
cout << "*|*| 欢迎您使用学生管理系统 |*|*" << endl;
cout << "*|*| |*|*" << endl;
cout << "********************************************************" << endl;
do {
cout << "<---------------------------------------------------->" << endl;
cout << " \n \t\t 1:Undergraduate Manage ";
cout << " \n \t\t 2:Graduate Manage ";
//cout << " \n \t\t 3.TA Manage ";
cout << " \n \t\t 0:Exit ";
cout << endl;
cout << "<---------------------------------------------------->" << endl;
cout << "Please choose" << endl;
cin >> choiceN;
switch (choiceN)
{
case 1:
unMan.dataManage();
break;
case 2:
grMan.dataManage();
break;
//case 3:
//TAMan.dataManage();
//break;
default:
break;
}
} while (choiceN != 0);
cout << " **********************************************************" << endl;
cout << "*|*| 感谢使用学生管理系统 |*|*" << endl;
cout << " **********************************************************\a" << endl;
system("pause");
}
// 运行程序: Ctrl + F5 或调试 >“开始执行(不调试)”菜单
// 调试程序: F5 或调试 >“开始调试”菜单
// 入门使用技巧:
// 1. 使用解决方案资源管理器窗口添加/管理文件
// 2. 使用团队资源管理器窗口连接到源代码管理
// 3. 使用输出窗口查看生成输出和其他消息
// 4. 使用错误列表窗口查看错误
// 5. 转到“项目”>“添加新项”以创建新的代码文件,或转到“项目”>“添加现有项”以将现有代码文件添加到项目
// 6. 将来,若要再次打开此项目,请转到“文件”>“打开”>“项目”并选择 .sln 文件