🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #2185

Re: STL <iostream> vs. <iostream.h>

#2185
From: jDesquilbet
Date: Sat, 14 Oct 1995 08:10
40 lines
1142 bytes
John Max Skaller <maxtal@suphys.physics.su.oz.au> wrote:
>
>  #include <iostream>
>  using std::cout;
>  using std::endl;
>
>  int main()
>  {
>    cout << "Hello, world!" << std::endl;
>  }
>

Thanks for your answer.
I suppose you mean:

  #include <iostream>
  using std::cout;
  using std::endl;

  int main()
  {
    cout << "Hello, world!" << endl;
  }

And what about <<?
Is not something like:

  using std::operator<<;

necessary?

  Jerome.



---
[ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID: <MATT.95Oct14001058@Austern>
Path: arc1-ca.pugleaf.net!news.mindlink.net!agate!agate!Matt
References: <45as8l$mf8@rational.rational.com> <45cp5c$sd@oznet03.ozemail.com.au>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.mindlink.net!agate!agate!Matt
From: jDesquilbet@Rational.COM
Newsgroups: comp.std.c++
Subject: Re: STL <iostream> vs. <iostream.h>
Date: 14 Oct 1995 08:10:58 GMT
Organization: Rational Software Corporation, France
Approved: Matt@Austern
Message-ID: <MATT.95Oct14001058@Austern>
References: <45as8l$mf8@rational.rational.com> <45cp5c$sd@oznet03.ozemail.com.au>
NNTP-Posting-Host: austern.hip.berkeley.edu