#include "manager.h" //构造函数 Manager::Manager(int id, std::string name, int dept_id) { this->m_ID = id; this->m_Name = name; this->m_DeptID = dept_id; } //显示个人信息 void Manager::showInfo() { std::cout << "职工编号" << this->m_ID << "\t职工姓名" << this->m_Name << "\t岗位:" << this->getDeptName() << "\t岗位职责:完成老板交给的任务,下发任务给员工" << std::endl; } //获取岗位名称 std::string Manager::getDeptName() { return std::string("经理"); }