标签:span return style ret 字符串 div col pre copy
string trim(string s) { int len = s.length();
char *str = new char[len];
s.copy(str, len);
str[len] = ‘\0‘;
char *tmp = str;
int i = 0;
while (*tmp)
{
if (*tmp != ‘ ‘)
{
str[i++] = *tmp;
}
tmp++;
}
str[i] = ‘\0‘;
cout << str;
return str; }
标签:span return style ret 字符串 div col pre copy
原文地址:https://www.cnblogs.com/rzy200205/p/12264118.html