Hmmm...
Maybe, instead of "include <iostream.h>" , try just "include <iostream>"
C++ at one point did away with the old header files. I'm not sure exactly why, but the new way is faster.
Printable View
Hmmm...
Maybe, instead of "include <iostream.h>" , try just "include <iostream>"
C++ at one point did away with the old header files. I'm not sure exactly why, but the new way is faster.
Striek:
I already tried that(that was my first idea before <iostream.h>
The last thing I can think of is to change all of the references to cout to specify the standard library, so change them to std::cout. I think gcc before version 3 enforced this.
that didnt work either...
would the problem be in the include librarys???
the only reason i dont think this is the problem is because when i tried the program:
#include <iostream.h>
int main()
{
cout <<"Hello, World!";
return 0;
}
:it came with an error with "std::cout" so i think it read it ok...
hmmmm.........
would reinstalling fix the prob.?
it looks like it is not locating the iostream.h you need to do a locate and find the iostream.h and then include it explicitly... I believe it is like... #include "/usr/local/include/iostream.h" but I haven't done it in so long I don't remember now... there is a way to change the include paths in the complier, but I don't have any clue how to do that.
I think ive found the problem... /usr/local/include exists but there is nothing in it... does anyone know where another include path is?
i downloaded new header files and it works fine now...