Afficher un message
Vieux 21/02/2008, 15h25   #5
Joe Greer
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: making stringstream empty

"=?GB2312?B?yrGzvc6w?=" <shichenweixjtu@gmail.com> wrote in news:ccaa3c01-
7313-4ed0-8b4b-34afc582ba26@t66g2000...oglegroups.com:

> On 2ÔÂ21ÈÕ, ÏÂÎç5ʱ20·Ö, mthread <rjk...@gmail.com> wrote:
>> Hi,
>> I am using a variable of type stringstream in my application. I
>> am adding some information in the stream. I would like to know what is
>> the method to make the stream empty. Thanx in advance.

>
> you can use clear() method to make the stream empty.


It sure sounds like that's what it should do, doesn't it? Too bad it
really only clears some flags. str("") is the way to reset the string.
  Réponse avec citation
 
Page generated in 0,04589 seconds with 9 queries