# cpp-staff **Repository Path**: wei-han-yi/cpp-staff ## Basic Information - **Project Name**: cpp-staff - **Description**: 使用C++多态语法实现一个职工管理系统 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2024-06-01 - **Last Updated**: 2024-06-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 职工管理系统 ## 项目介绍 公司中职工分为三类:普通员工、经理、老板,显示信息时,需要显示职工编号、职工姓名、职工岗位、以及职责 - **普通员工职责**:完成经理交给的任务 - **经理职责**:完成老板交给的任务,并下发任务给员工 - **老板职责**:管理公司所有事务 管理系统中需要实现的功能如下: - `退出管理程序`:退出当前管理系统 - `增加职工信息`:实现批量添加职工功能,将信息录入到文件中,职工信息为:职工编号、姓名、部门编号 - `显示职工信息`:显示公司内部所有职工的信息 - `删除离职职工`:按照编号删除指定的职工 - `修改职工信息`:按照编号修改职工个人信息 - `查找职工信息`:按照职工的编号或者职工的姓名进行查找相关的人员信息 - `按照编号排序`:按照职工编号,进行排序,排序规则由用户指定 - `清空所有文档`:清空文件中记录的所有职工信息 (清空前需要再次确认,防止误删) # Employee Management System ## Project Introduction Employees in the company are divided into three categories: ordinary employees, managers, and bosses. When displaying information, it is necessary to display the employee number, employee name, employee position, and responsibilities - **Ordinary employee responsibilities**: complete the tasks assigned by the manager - **Manager responsibilities**: complete the tasks assigned by the boss, and issue tasks to employees - **Boss responsibilities**: manage all company affairs The functions that need to be implemented in the management system are as follows: - `Exit management program`: exit the current management system - `Add employee information`: implement the function of adding employees in batches, and enter the information into the file. The employee information is: employee number, name, department number - `Display employee information`: Display the information of all employees in the company - `Delete resigned employees`: Delete the specified employee by number - `Modify employee information`: Modify employee personal information by number - `Search employee information`: Search for relevant personnel information according to the employee number or employee name - `Sort by number`: Sort by employee number, and the sorting rules are specified by the user - `Clear all documents`: Clear all employee information recorded in the file (Confirm again before clearing to prevent accidental deletion)