用另一個子串C ++替換substring我怎么能用C ++中的另一個子字符串替換字符串中的子字符串,我可以使用哪些函數?eg: string test = "abc def abc def";test.replace("abc", "hij").replace("def", "klm"); //replace occurrence of abc and def with other substring
- 3 回答
- 0 關注
- 545 瀏覽
添加回答
舉報
0/150
提交
取消
