1 2 3 4 5 6 7 8 9 10 11
#include <algorithm> #include <iostream> #include <string> int main(){ std::string line = "qwe rty !! asd"; std::remove(line.begin(), line.end(), ' '); std::cout << line << std::endl; return 0; }
1
qwerty!!asdasd