为了账号安全,请及时绑定邮箱和手机立即绑定

用另一个子串C ++替换substring

用另一个子串C ++替换substring

C++
斯蒂芬大帝 2019-08-19 15:50:54
用另一个子串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 回答

  • 3 回答
  • 0 关注
  • 519 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信