Iceman2005
Programmer
Hi... i need help with simple strings.......
you guys should know it....
given a string..... like....
string ss = "blah blah blah ...";
Q: how do i replace ALL instance of a substr with another string? Like if i want to replace all the letter "a" to another letter or phrase.... how do i do that?
is there a function that can do it like....
ss.replace(from_first_char, to_last_char, "a", "new string");
thank you.
Imp
you guys should know it....
given a string..... like....
string ss = "blah blah blah ...";
Q: how do i replace ALL instance of a substr with another string? Like if i want to replace all the letter "a" to another letter or phrase.... how do i do that?
is there a function that can do it like....
ss.replace(from_first_char, to_last_char, "a", "new string");
thank you.
Imp