|
| stupid idiot (11) | |||||
| hey guys im having some problem with using the stringstream. Emtpying it or not i just can't reuse it.. briefly my code looks like this:
then I want to use it again but i just can't make it working, i have tried to empty like this.
| |||||
Last edited on | |||||
| kempofighter (659) | |
| Need a more complete example please. Show us a main function that we can compile that demonstrates the problem. | |
| rocarvaj (1) | |||
| Hi!, I had the same problem. I think I figured out what happens. In order to reuse the streamstring you have to clear the error control state. For example, in your case:
The clear function is here: http://www.cplusplus.com/reference/iostream/ios/clear/ Good luck! | |||
This topic is archived - New replies not allowed.
