📜  如何用新字符串c ++代码示例替换部分字符串

📅  最后修改于: 2022-03-11 14:44:58.273000             🧑  作者: Mango

代码示例1
//String Replacement
#include 

int main(){
  //String before replacement
  string str = "We want to replace all of you";
  //use this inbuilt function
  str.replace(19,10,"me");
    
  cout<