C++中去掉string字符串中的 等

string imagedata;
imagedata = “dudau dadafca ”
CString Image;
Image = imagedata.c_str();
Image.Replace("\r\n","");

原文地址:https://www.cnblogs.com/Pond-ZZC/p/10323004.html