Generation

generate functionMon, 23 Jan 2023

how to replace a string

string s = "I want to replace this."; s.replace(7, 3, "that"); cout << s << endl; // "I want to that this."

Questions about programming?Chat with your personal AI assistant