64,282
社区成员
发帖
与我相关
我的任务
分享
std::string result="123";
char * x = new char[result.length() + 1];
strcpy_s(x,result.length()+1,result.c_str());
std::cout <<"分配的内存地址:"<< &x << std::endl;
return x;
std::string result="123";
return result.c_str();