Afficher un message
Vieux 21/02/2008, 11h12   #3
kasthurirangan.balaji@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: making stringstream empty

On Feb 21, 2:20pm, 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.


use str member function.

#include <sstream>

main()
{
std::stringstream sstr;
sstr << "hello";
sstr.str("");
}

Thanks,
Balaji.
  Réponse avec citation
 
Page generated in 0,04445 seconds with 9 queries