πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

STL <iostream> vs. <iostream.h>

#2152
From: Jirtme Desquilbet
Date: Mon, 09 Oct 1995 17:21
25 lines
1007 bytes
Reading the STL part of the CD, I understand that the sample "Hello world"
program becomes:

#include <iostream>
int main()
{
  using namespace std;
  cout << "Hello, world!" << endl;
}

Am I right?

If yes, what about "old" programs written using <iostream.h>? What does the
above program become if I want to write it without using namespace std?

Thanks in advance,

  JΓ©rΓ΄me.


---
[ 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: <45as8l$mf8@rational.rational.com>
Path: arc1-ca.pugleaf.net!128.32.155.1!matt

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!128.32.155.1!matt
From: "J\ir\tme Desquilbet" <jDesquilbet@Rational.COM>
Newsgroups: comp.std.c++
Subject: STL <iostream> vs. <iostream.h>
Date: 09 Oct 1995 17:21:48 GMT
Organization: Rational Software Corporation, France
Approved: matt@physics2.Berkeley.EDU (Matt Austern)
Message-ID: <45as8l$mf8@rational.rational.com>
NNTP-Posting-Host: physics2.berkeley.edu