iostream

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
 
C

Carl Daniel [VC++ MVP]

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top