Portfolio

Remove_String_Space


/*Simple, remove the spaces from the string, then return the resultant string.
*/


using namespace std;

std::string no_space(std::string x)
{

x.erase(std::remove(x.begin(), x.end(), ' '), x.end() );
return x;
}