Speicherplatz aus String CPP
#include<iostream>
#include<algorithm>
using namespace std;
main() {
string my_str = "This is C++ Programming Language";
cout << "String with Spaces :" << my_str << endl;
remove(my_str.begin(), my_str.end(), ' ');
cout << "String without Spaces :" << my_str;
}
Jon TMCF