C++中去掉string字符串中的\r\n等

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

猜你喜欢

转载自www.cnblogs.com/Pond-ZZC/p/10323004.html