Discussion: chopping strings
Afficher un message
Vieux 17/10/2007, 16h27   #2
Shadowman
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: chopping strings

djm wrote:
> hello everyone. ive a string with a blank space at the start
> for eg:
> string str=" c++ rocks!";
> how can i chop of that blank space of the string and display?
> thanks
>


Use some combination of one or more of:

string::find
string::find_first_of
string::erase

--
SM
rot13 for email
  Réponse avec citation
 
Page generated in 0,06692 seconds with 9 queries