Archived

This topic is now archived and is closed to further replies.

Lesson 30

This topic is 4992 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

Hello, I downloaded the .NET version of Lesson 30. When I build it I''m getting the error... “Cannot open include file: ‘iostream.h’: No such file or directory” I checked and iostream.h isn''t on my system. Did Microsoft ditch iostream? Does anyone know what gives? Thanks

Share on other sites
Try just "iostream". the .h is deprecated, though I''m surprised you don''t have it for backwards-compatibility.

Share on other sites
Ok, in Tvector.h I changed the include to be
#include <iostream>
#include <iostream.h>
but I get a host of other errors.
I''m running XP Pro with .NET 2003. Any ideas anyone?
Thanks

Share on other sites
If I''m right vs.net 2003 doesn''t have iostream :O !?

Share on other sites
Ok, then Lesson 30 will probably work under the first .NET but not 2003? Looks like they''d kept something for backwards compatibility...

Share on other sites
#include<iostream>#include<fstream>using namespace std;

Sharp Basic - Coming summer 2004!

[edited by - deranged on June 10, 2004 1:25:42 PM]

Share on other sites
Like I mentioned before...using
#include <iostream> instead of #include <iostream.h> in Tvector.h gives me a host of other errors.

Share on other sites
Are you in the std namespace?

[My site|SGI STL|Bjarne FAQ|C++ FAQ Lite|MSDN|Jargon]
Ripped off from various people

Share on other sites
I use VS.NET 2003 and have no problem with iostream, just FYI. It''s in there. I''d check the namespace too.

Share on other sites
I go out to NeHe's site...go to Lesson 30, download the Visual Studio .NET Code for the lesson. I open it in .NET 2003 and I get a message stating that .NET wants to convert to the formats used by this version of Studio .NET. I convert it. I compile and I get the Fatal error...Cannot open include file: 'iostream.h'.
I'm not sure if I'm in std namspace or not. I know that I use my installation of .NET for other c# projects and all works fine.