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

用另一个子串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 关注
  • 527 浏览

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号