iostream

  • Thread starter Thread starter Shane Ragone
  • Start date Start date
S

Shane Ragone

What happened to iostream.h in VS .NET? Are we now to
code:

#include <iostream>

instead of:

#include <iostream.h>

All my past code that used iostream.h will no longer
compile. It seems that I have to go through all my code
and replace iostream.h with iostream. Is there any good
reason for this change? I'm using VS .NET 2003 version.
Thanks.

Shane
 
Shane said:
What happened to iostream.h in VS .NET? Are we now to
code:

#include <iostream>

instead of:

#include <iostream.h>
Yes.


All my past code that used iostream.h will no longer
compile. It seems that I have to go through all my code
and replace iostream.h with iostream. Is there any good
reason for this change? I'm using VS .NET 2003 version.
Thanks.

Yes there is. <iostream.h> is not part of the C++ standard while <iostream>
is. The VC team no longer wished to maintain two separate libraries, so the
non-standard one was clearly the one to go. "Classic IOStreams" (aka
<iostream.h>) was deprecated in VC7 (VS.NET 2002) and removed in VC7.1
(VS.NET 2003). Time to upgrade your code to be standard compliant.

-cd
 
Back
Top