Supermarket Managemet System/main.cpp
string removeSpaces(string str)
    {
    str.erase(remove(str.begin(), str.end(), ' '), str.end());
    return str;
}
// Function to remove all spaces from a given string
Function to remove all spaces from a given string
Function to remove all spaces from a given string
string removeSpaces(string str)
    {
    str.erase(remove(str.begin(), str.end(), ' '), str.end());
    return str;
}
string removeSpaces ( string str ) { str . erase ( remove ( str . begin ( ) , str . end ( ) , ' ' ) , str . end ( ) ) ; return str ; }
Function to remove all spaces from a given string
Function to remove all spaces from a given string