#include "Employee.h"
#include <iostream>
#include <vector>
#include <iterator>
using namespace std;
int main(){
CEmployee* c=new CEmployee;
cout<<c->GetName()<<endl;
CEmployee c1;
cout<<c1.GetName()<<endl;
}
#ifndef EMPLOYEE_H
#define EMPLOYEE_H
#include <string>
using namespace std;
class CEmployee
{
public:
CEmployee(string name="nan"){strName=name;}
~CEmployee();
void Setname(string name); //设置员工名
string GetName(); //返回员工名
private:
string strName; //员工名
// CEmployee();
};
#endif
修改"nan"需要重新生成解决方案