Re: [Dev-C++] Cleaning the Input Buffer
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <or...@vp...> - 2003-06-09 13:00:03
|
Krzysztof Kapuscik wrote:
> Yes, for sure... And also some problems could happen when mixing stdio
> and iostream code because of separated buffering, for example:
>
> printf (" Something")
> cout << " strange";
> printf (" happened"); <= here stdout is flushed
> cout << " with the string";
>
> could produce:
>
> Something happened strange with the string
>
> I don't know if it is regulated by C++ standard, but some compilers
> make code with "special effects" described above...
I never said to MIX code. I said, use what is simpler for YOU (the
original poster). If it works, why the hell ponder for hours on
something, that:
1. Does the same
2. More complicated for YOU (NOT Ioannis, NOT Krzysztof or ME)
--
Greetings,
Balázs
|