[c++] How to remove all the occurrences of a char in c++ string