65,211
社区成员
发帖
与我相关
我的任务
分享
#include "stdafx.h"
#include <iostream>
using namespace std;
class String
{
private:
string str;
public:
string& append (const string& str) // str1 和里面str1冲突了
{
string str1("red"),str2("world");
str1.append (str2);
}
};
int _tmain(int argc, _TCHAR* argv[])
{
cout < <"str1=";
return 0;
}