Maybe some clarification is needed to what Thierry wrote:

1. Iostreams are flushed automatically upon destruction, i.e. no extra 
flushing is needed.

2. In many cases you don't *want* to flush the stream after every output, if 
you for instance write to harddisk. In this case flushing would cost lots of  
performance. The big advantage of iostreams over old printf's is the builtin 
buffering mechanism.

3. `ends' is the end-of-string character. It doesn't flush anything.

Being the smart ass that i am i have to admit that i don't know either what 
caused Fabio's problem...

nico


On Thursday 21 June 2001 16:07, you wrote:
> If you use iostream, you should always use endl (or ends) instead of '\n'.
> endl provide line feed plus it flush the stream.
>
>  I think your problem was just an unflushed or broken stream, probably
> related to something you did before. I'm almost 99.999999% sure that it was
> not a winME prob (but who knows with Microsoft?).
>
> Thierry
>
> -----Original Message-----
> From: Fabio Spreafico [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, June 21, 2001 1:59 AM
> To:   [EMAIL PROTECTED]
> Subject:      Re: [expert] Mdk 8.0: problems in running c++ execs.
>
> Hallo people,
> and thank you very much for all your suggestions.
> Do you know what happened yesterday evening? I wanted to try out your tips,
> and I started with remaking my usual procedure (the described one, I was
> trying since two weeks). Well...  IT WORKED!!! I didn't need to flush the
> stream or to change shell or so! Now I have my brave output and I tried
> some other codes. No more problem in having them running.
> The only seriuos thing I made with the machine the day before, was to reset
> the Windows OS to a previous date (Windows ME has this feature: it's
> possible to restart the computer with the settings of some days before). Do
> anybody think that a "cross-talk" between the two OS on the same computer
> could happen? Personally I've serious doubts! Well, if not... it was
> wizardry. I'm happy that finally all is working as it must.. Maybe my
> Computer wanted to force me subscribe to a so interesting newsgroup!
>
> Bye
>
> Fabio
>
>
>
>
>
>  --
> Dr. Fabio Spreafico
> Biomax Informatics AG
> Lochhamer Str. 11
> 82152 Martinsried
> Germany
>
> Tel.:         0049-89-8955748-56
> e-mail:       [EMAIL PROTECTED]

Reply via email to