Re: copy constructor puzzle

Discussion in 'C++' started by Gavin Deane, Jun 23, 2003.

  1. Gavin Deane

    Gavin Deane Guest

    "Howard" <> wrote in message news:<bd7d13$>...
    > "Gavin Deane" <> wrote in message
    > > >
    > > > #include <iostream.h>

    > >
    > > This should be
    > >
    > > #include <iostream>
    > > using namespace std;
    > >

    >
    >
    > > GJD

    >
    > No need to bring in the entire std namespace, though. This would be enough
    > for his purposes:
    >
    > using std::cout;


    Agreed. I was just too lazy to look through the code to see which
    name(s) were used. I don't mind having a using directive for simple
    example programs but I wouldn't generally do it in production code.

    GJD
    Gavin Deane, Jun 23, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. VisionSet
    Replies:
    8
    Views:
    4,893
    Tris Orendorff
    Apr 29, 2004
  2. Aire
    Replies:
    3
    Views:
    463
    Mike Wahler
    Jan 25, 2004
  3. ali
    Replies:
    4
    Views:
    572
    David Harmon
    Mar 5, 2007
  4. Generic Usenet Account
    Replies:
    10
    Views:
    2,221
  5. cinsk
    Replies:
    35
    Views:
    2,600
    James Kanze
    Oct 11, 2010
Loading...

Share This Page