B
Bill Sun
Hi,
I have a quetion about to refresh the ostringstream buffer: like this.
ostringstream buffer;
buffer << 245;
// then the buffer.str() = "245";
......
//next I want using this buffer again but I don't need the content of buffer
before, so
buffer.flush()
buffer << 456;
//here I hope I can get "456" from buffer.str()
but the buffer still is 245456, seem the buffer.flush not take function?
why?
who can help me?
Thanks adanveced,
Bill
I have a quetion about to refresh the ostringstream buffer: like this.
ostringstream buffer;
buffer << 245;
// then the buffer.str() = "245";
......
//next I want using this buffer again but I don't need the content of buffer
before, so
buffer.flush()
buffer << 456;
//here I hope I can get "456" from buffer.str()
but the buffer still is 245456, seem the buffer.flush not take function?
why?
who can help me?
Thanks adanveced,
Bill