📅  最后修改于: 2022-03-11 14:44:45.171000             🧑  作者: Mango
#include
#include
void some_func() {
std::string s = "example string";
std::replace( s.begin(), s.end(), 'x', 'y'); // replace all 'x' to 'y'
}