📅  最后修改于: 2022-03-11 14:44:50.155000             🧑  作者: Mango
string removeSpaces(string str)
{
stringstream s(str);
string temp;
str = "";
while (getline(s, temp, ' ')) {
str = str + temp;
}
return str;
}
//Input: Ha Noi Viet Nam
//Output: HaNoiVietNam