Ejemplo n.º 1
0
int main(int argc, char** argv, char** env)
{
	Resume rs;
	rs.SetPersonInfo("默默", "女", 21);
	rs.SetWorkExperience("新浪", "2");
	rs.PrintInfo();
	
	Resume* pResume = rs.Clone();
	pResume->SetPersonInfo("vic", "男", 22);
	pResume->SetWorkExperience("搜狗", "2");
	pResume->PrintInfo();
	delete pResume;
    
    return 0;
}
Ejemplo n.º 2
0
	Resume* Clone()
	{
		Resume* pResume = new Resume;
		pResume->SetPersonInfo(name_, sex_, age_);
		pResume->SetWorkExperience(workexperience_.get_company(), workexperience_.get_worktime());
		return pResume;
	}