C++中去掉string字符串中的\r\n等
string imagedata;
imagedata = “dudau\r\ndadafca\r\n”
CString Image;
Image = imagedata.c_str();
Image.Replace("\\r\\n","");
只想当咸鱼的程序员
string imagedata;
imagedata = “dudau\r\ndadafca\r\n”
CString Image;
Image = imagedata.c_str();
Image.Replace("\\r\\n","");