rob.ahlberg@gmail.com wrote:
> [..]
> Yeah the programming guru at my school ed me with the string
> stream. Unfortunately I cannot clear the string.. It's a little game
> I'm currently at.. And I got a function to determine the fps.Then I
> got 'int fps' And I do like:
> ss << fps;
> print(ss.str().c_str());
> ss.flush();
> But that's the problem... It wont clear the string. It just add the
> new fps after the other one and so on. I need to clear it...
This should clear the stream, IIRC:
ss.str().clear();
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask