您的位置:首页 > 其它

有时候需要VS重新生成解决方案

2013-11-22 19:10 369 查看
#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"需要重新生成解决方案

 

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐