Thursday, May 21, 2009

how to clear the stringstream

you can't actually use the erase in some cases (this may result in exeptions )

rather use xx.std("");

will clear the buffer.

-Mihir Patel

Note : Assume the string stream is xx

No comments: