Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ > Re: placing new...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 8 Topic 45768 of 47032
Post > Topic >>

Re: placing new characters at the end of string

by "Andrew Koenig" <ark@[EMAIL PROTECTED] > May 9, 2008 at 03:44 AM

> i am sorry... i got it....
> it will work if do it like this

> crap.replace(crap.length(),1,"xx");

Yes, it will.  However, it would be more honest to write it this way:

    crap.replace(crap.length(),0,"xx");

and even easier to write it this way:

    crap += "xx";

as others have already pointed out.
 




 8 Posts in Topic:
placing new characters at the end of string
"friend.blah@[EMAIL   2008-05-06 01:29:33 
Re: placing new characters at the end of string
Ian Collins <ian-news@  2008-05-06 20:32:14 
Re: placing new characters at the end of string
"friend.blah@[EMAIL   2008-05-06 01:35:05 
Re: placing new characters at the end of string
Ian Collins <ian-news@  2008-05-06 20:40:50 
Re: placing new characters at the end of string
"Andrew Koenig"  2008-05-09 03:44:10 
Re: placing new characters at the end of string
pjb@[EMAIL PROTECTED] (P  2008-05-06 10:45:22 
Re: placing new characters at the end of string
"Jim Langston"   2008-05-06 01:57:19 
Re: placing new characters at the end of string
James Kanze <james.kan  2008-05-06 03:17:14 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 15:52:40 CDT 2008.