employee.h

来自「用C++实现的一个职工工资管理系统」· C头文件 代码 · 共 62 行

H
62
字号
//-----------------------------------------------------
//           文件名:Employee.h
//-----------------------------------------------------
#ifndef EMPLOYEE_H
#define EMPLOYEE_H
#include <iostream>
#include <string>
#include "User.h"
#if _MSC_VER > 1020
	using namespace std;
#endif


class Employee : public User {
private :
		string  salaryId;     //工资卡号 5 位
		string IDCard;         //身份证号
		string name;	    //姓名
		string sex;            //性别 
	    int age;            //年龄
		int wAge;	     //工龄
		string department;   //部门
		string pos;          //技术职称、
		string posID;           //技术职称编号 用4位表示 前面2 位表示部门编号 后2 位 职位
		string homeTel;      //家庭电话号码、
		string mobilePhone; //手机号码

public:
	Employee();
	~Employee();
	void setSalaryID(string);
	void setIDCard(string );
	void setName(string );
	void setSex(string );
	void setAge(int );
	void setWAge(int );
	void setDepartMent(string);
	void setPos(string );
	void setPosID(string );
	void setHomTel(string );
	void setMobilePhone(string);

	string getSalaryID();
	string getIDCard();
	string getName();
	string getSex();
	int getAge();
	int getWAge();
	string getDepartment();
	string getPos();
	string getPosID();
	string getHomTel();
	string getMobilePhone();

	void lookup();

//    string  getInfo();  //返回自己信息
//    changeHomeTel();    //更改住宅电话号码
//    changeMobilePhone ();  //更改手机号码
};

#endif //EMPLOYEE_H

⌨️ 快捷键说明

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