Re[2]: [Dev-C++] Cleaning the Input Buffer
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Krzysztof K. <sa...@op...> - 2003-06-09 11:08:00
|
Witaj Ioannis,
W Twoim licie datowanym 9 czerwca 2003 (12:48:24) mo¿na przeczytaæ:
>> -----Original Message-----
>> From: dev...@li...
>> [mailto:dev...@li...] On Behalf
>> Of OROSZI Balazs
>> Sent: Monday, June 09, 2003 11:53 AM
>> To: dev...@li...
>> Subject: Re: [Dev-C++] Cleaning the Input Buffer
>>
>> My Question:
>> Why do you want new C++ commands? That'll only make things more
>> complicated, they are slower, and will make your program bloated.
>> The "old" C version is just fine.
IV> In the contrary they are simpler, they should not be slower and make the
IV> program with less lines and more bullet-proof.
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...
--
Pozdrowienia,
Krzysztof
mailto:sa...@op...
http://www.saveman.w.pl
|