std::string
里面std::replace
只有单字符替换
std::replace(str.begin(), str.end(), '\"', '@');//单字符替换-----将双引号换成@符
如果有字符串替换的话需要配合find()
使用
std::string
里面std::replace
只有单字符替换
std::replace(str.begin(), str.end(), '\"', '@');//单字符替换-----将双引号换成@符
如果有字符串替换的话需要配合find()
使用