Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ remove space from string

static std::string removeSpaces(std::string str)
{
	str.erase(remove(str.begin(), str.end(), ' '), str.end());
	return str;
}
 
PREVIOUS NEXT
Tagged: #remove #space #string
ADD COMMENT
Topic
Name
1+7 =