Mail Archives: djgpp/1999/10/01/10:15:43
In article <6e%I3.30760$ei1 DOT 53600 AT newsfeeds DOT bigpond DOT com>, "Johan Venter" <jventer AT writeme DOT com> wrote:
>Steven Anthony Uy <tsanth AT iname DOT com> wrote in message
>news:HSL0N4+v6qbmIKWROFCraDu0ExqC AT 4ax DOT com...
>> On Sun, 26 Sep 1999 08:32:48 GMT, iharriso AT haverford DOT edu (Ian) wrote:
>>
>> Shouldn't it read:
>>
>> #include <iostream>
>>
>> instead? I'd learned (today, even!) that iostream.h is the header
>> file for C-style IO, whereas iostream is the header for C++-style IO.
>
>No, where did you learn that from? It's seriously misguided. Normally you'd use
>stdio.h for C IO and iostream.h for C++.
>
Well, it wasn't that misguided. Of course C-style IO never was in anything
called iostream. But: <iostream.h> is old-style C++, <iostream> is
current-style C++ as described in the iso-standard or in Stroustroup
(spelling?).
So it should read #include <iostream>
--
Manni
- Raw text -