how to delete specific character in string in c++ code example
Example: delete one specific character in string C++
#include <algorithm>
str.erase(std::remove(str.begin(), str.end(), 'a'), str.end());
#include <algorithm>
str.erase(std::remove(str.begin(), str.end(), 'a'), str.end());