delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/01/10:15:43

Newsgroups: comp.os.msdos.djgpp
From: manfred DOT heumann AT uni-bielefeld DOT de (Manni Heumann)
Subject: Re: Problem with C++ libraries in djgpp
References: <7sklom$aug$1 AT winter DOT news DOT rcn DOT net> <HSL0N4+v6qbmIKWROFCraDu0ExqC AT 4ax DOT com> <6e%I3.30760$ei1 DOT 53600 AT newsfeeds DOT bigpond DOT com>
X-Newsreader: News Xpress 2.01
Date: Fri, 01 Oct 1999 12:05:58 GMT
NNTP-Posting-Host: dhcp33-114.uni-bielefeld.de
Message-ID: <37f4a3b2.0@news.uni-bielefeld.de>
X-Trace: 1 Oct 1999 14:06:10 +0200, dhcp33-114.uni-bielefeld.de
Lines: 27
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019