🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#2171
From: Jirtme Desquilbet
Date: Fri, 13 Oct 1995 01:55
36 lines
1339 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: <45jbct$qv9@rational.rational.com>
Path: arc1-ca.pugleaf.net!in2.uu.net!bounce-back
References: <45as8l$mf8@rational.rational.com> <45cp5c$sd@oznet03.ozemail.com.au>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!in2.uu.net!bounce-back
Date: 13 Oct 95 01:55:30 GMT
Approved: fjh@cs.mu.oz.au
From: "Jirtme Desquilbet" <jDesquilbet@Rational.COM>
Newsgroups: comp.std.c++
Subject: Re: STL <iostream> vs. <iostream.h>
X-Original-Date: 12 Oct 1995 15:14:37 GMT
Organization: Rational Software Corporation, France
Message-ID: <45jbct$qv9@rational.rational.com>
References: <45as8l$mf8@rational.rational.com> <45cp5c$sd@oznet03.ozemail.com.au>
X-Mailer: Mozilla 1.12 (X11; I; AIX 2)
X-Auth: PGPMoose V1.0 PGP comp.std.c++
 iQBFAgUBMH3HJ+EDnX0m9pzZAQEQJwF+K1IH2Y63mfthEhw55XUQlmQL3W5qryxK
 d308yhBc+Br3wHXdlmKxxUfMu0q4q961
 =jwOv