rob.ahlberg@gmail.com wrote:
> On 16 Jan, 00:05, "Victor Bazarov" <v.Abaza...@comAcast.net> wrote:
>> rob.ahlb...@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
>
> Aha.. I just wroted ss.clear();
> Thanks for the
You probably need to do 'ss.clear()' as well, in case there are any
error bits set...
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask