how to erase an occurenece character from a string 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());