Hi, any help on this would be appreciated.
I need to insert a string some where inside of another string. Example:
My String.
My goofy String.
I need to insert 'goofy' inside of 'My String'. see what I mean?
Thanks.
Hi, any help on this would be appreciated.
I need to insert a string some where inside of another string. Example:
My String.
My goofy String.
I need to insert 'goofy' inside of 'My String'. see what I mean?
Thanks.
Hi Spektrum,
memmove() comes to mind.
Cheers,
Jason Deckard
thanks!
if you're using C++, you can use the string Datatype. it provides an insert method....
Code:#include <iostream> using std::cout; using std::endl; #include <string> using std::string; int main () { string s1 = "My String"; s1.insert (3, "Goofy "); // insert "Goofy " at position 3 cout << s1 << endl; return 0; }
THIS IS NOT JUST A CHRONICLING OF THINGS WE HAVE DONE IN THE PAST BUT OUR RISE TO POWER.