by "Jim Langston" <tazmaster@[EMAIL PROTECTED]
>
May 6, 2008 at 01:57 AM
friend.blah@[EMAIL PROTECTED]
wrote:
> i have a string say
>
> string crap = "abc:abd:aass";
>
> at the end of my string i want to place new characters like "xx"
> so the final string looks like
>
> string crap = "abc:abd:aassxx";
>
> how to resolve this issue...
>
> i could able replace colons (:) with other characters but i am failing
> when i wanna place new characters at the end of string.
>
>
> thanks for any help
std::string crap = "abc:abd:aass";
1. crap += "xx";
2. crap = crap + "xx";
3. crap += 'x'; crap += 'x';
4. crap.push_back('x'); crap.push_back('x');
5....
--
Jim Langston
tazmaster@[EMAIL PROTECTED]