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 3 of 8 Topic 45768 of 47017
Post > Topic >>

Re: placing new characters at the end of string

by "friend.blah@[EMAIL PROTECTED] " <friend.blah@[EMAIL PROTECTED] > May 6, 2008 at 01:35 AM

On May 6, 10:32=A0am, Ian Collins <ian-n...@[EMAIL PROTECTED]
> wrote:
> friend.b...@[EMAIL PROTECTED]
 wrote:
> > i have a string say
>
> > string crap =3D "abc:abd:aass";
>
> Assuming this is std::string...
>
> > at the end of my string i want to place new characters like "xx"
> > so the final string looks like
>
> > string crap =3D "abc:abd:aassxx";
>
> > how to resolve this issue...
>
> By adding them?
>
> What have you tried?
>
> --
> Ian Collins.

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

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

anyway thanks...
 




 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 Thu Jul 24 15:52:40 CDT 2008.