Hello folks.. Can someone suggest me a way of replacing a part of a string with something else? What I mean is:
Here I want to know if there is a generic way of doing this. Any help will appreciated. ThanksCode:int main()
{
string someString("My name is michael");
replace(someString,"michael","alex");
return 0;
}