how to delete some characters from index in the 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());