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.
14 lines
426 B
14 lines
426 B
#include "employee.h"
|
|
Employee::Employee(int id, string name, int dId) {
|
|
this->m_Id = id;
|
|
this->m_Name = name;
|
|
this->m_DeptId = dId;
|
|
}
|
|
void Employee::showInfo() // 打印职工信息
|
|
{
|
|
cout << "职工编号:" << this->m_Id << "\t职工姓名:" << this->m_Name
|
|
<< "\t岗位:" << this->getDeptName() << "\t岗位职责:完成经理交给的任务"
|
|
<< endl;
|
|
}
|
|
|
|
string Employee::getDeptName() { return string("员工"); } |