Replacing a substring within a String
I am trying to replace "the" with "that". My original sentence is "the ball is under the car". I can successfully change the first "the". But when I try to change the second "the" string1 ends up being "that ball us under that".So it cuts off the world "car". What am I doing wrong? Any help will be...
__________________
C++
domain name forum
|