下你所需,载你所想!
汇集开发技术源码资料

员工信息管理系统

:613.966KB :1 :2022-09-24 20:10:18

部分简介

员工信息管理系统如果开发者对于本文件有需要的可以参考。
#include "Chairman.h"
void Chairman::input()
{cout << "请输入主任工程师的信息:" << endl << "职务、部门、专业、职称、编号、姓名、年龄:";
cin >> this->zhiwu >> this->department >> this->major
>>this->zhicheng>> this->number >> this->name >> this->age;
Write(*this);}//提示用户输入信息
void Chairman::write(fstream &m)
{m.open("Chairman.txt", ios::app);
m << "\t" << zhiwu << "\t" << department << "\t" << major << "\t" << zhicheng
<< "\t" << number << "\t" << name << "\t" << age<m.close();}//写入文件
void Chairman::read(fstream &n)
{n.open("Chairman.txt", ios::in);
if (!n.is_open())
{cout << "文件打开失败" << endl;
system("pause");
return;}

热门推荐

相关文章