⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 guohui.cpp

📁 老师安排的一个c++小程序
💻 CPP
字号:
// guohui.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "personnel.h"
#include <conio.h>
#include <iostream.h>
#include <fstream>
using namespace std;
CPersonnel staff;
int main(int argc, char* argv[])
{

	char userResponse;
	bool exitApp=0;
	while (exitApp==0)
	{
		system("cls");
		staff.DisplayAppInfo();
		userResponse=staff.GetLegalInput();
		if(userResponse=='Q'||userResponse=='q')
		{
			exitApp=1;
			cout<<"按下任意键程序将自动退出!"<<endl;
		}

		if(userResponse=='1')
		{
			staff.DataQuery();
		}

		if(userResponse=='2')
		{
			staff.DataInput();
		}

		if(userResponse=='3')
		{
			cout<<endl;
			cout<<"--------文件内容-----------"<<endl;
			staff.OpenfileDisplay("staff.bat");
		    _getch();
		}
		
	}

	return 0;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -