Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   C++ (http://www.velocityreviews.com/forums/f39-c.html)
-   -   Re: copy constructor puzzle (http://www.velocityreviews.com/forums/t267634-re-copy-constructor-puzzle.html)

Gavin Deane 06-23-2003 10:24 PM

Re: copy constructor puzzle
 
"Howard" <alicebt@hotmail.com> wrote in message news:<bd7d13$59f@dispatch.concentric.net>...
> "Gavin Deane" <deane_gavin@hotmail.com> 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


All times are GMT. The time now is 06:52 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.