把类的声明和定义分开写,然后在主函数中通过开放的端口调用1.先写类的声明放到头文件"Employee.h"里面#include "iostream"using namespace std;class Employee //声明类{private: int age; int yearsOfService; int Salary;public: Employee(int i_age,int i_yearOfService,int i_Salary); int GetAge(){ return age;} int GetYear(){ return yearsOfService...