Hey everyone,
I'm trying to find a string within a larger string, then replace it with a value. Here is an example (sudocode)?
How would I go about doing this?Code:string 1 = "this is REPLACE_STRING_HERE!"; string 2 = "really cool" string1.replace("REPLACE_STRING_HERE", string2); cout << string1 << endl; //outputs this is really cool!
Thanks,
Matt N