-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 7 Nov 2002 14:27:15 -0800, Jesse Keating wrote:

> # #include <iostream>
> # 
> # int main()
> # {
> #   std::cout << "Hello World\n";
> #   return 0;
> # }
> # 
> # As a sub note about the warning when including 'iostream.h'
> # languages change and evolve and thus with the evolution of C++
> # things are being deprecated. You also get a similar warning under
> # MSVC 7 .NET, if you include iostream.h.
> 
> Can you not define the namespace to std when using <iostream> ?  

Sure, but sometimes you don't want to see everything in that
namespace. And then you either specify the scope explicity with
std::cout or use "using std::cout;" at the beginning of the
file/block instead of the entire namespace with "using namespace
std;".

- -- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE9yvRP0iMVcrivHFQRAsCfAJ4p0fbgnjwmkjIY/eYbktEB+WlpQACeItfk
uzgSVNcfg/vFE3RO2EEbiYo=
=jgWC
-----END PGP SIGNATURE-----




Reply via email to