#include <iostream>
#include <string>
#include <vector>
using namespace std;
// Employee class
class Employee {
public:
Employee(string name, int age, string id, string department, double salary) {
this->name = name;
this->age = age;
this->id = id;
this->department = department;
this->salary = salary;
}
// Getter functions
string getName() { return name; }
int getAge() { return age; }
string getId() { return id; }
string getDepartment() { return department; }
double getSalary() { return salary; }
// Setter functions
void setName(string name) { this->name = name; }
void setAge(int age) { this->age = age; }
void setId(string id) { this->id = id; }
void setDepartment(string department) { this->department = department; }
void setSalary(double salary) { this-&
C++ 员工工资管理系统
最新推荐文章于 2024-04-24 21:21:09 发布