Whats with the error: must use c++ for header iostream.h? What do i do?
This is a discussion on Error: Must Use C++ within the C++ Programming forums, part of the General Programming Boards category; Whats with the error: must use c++ for header iostream.h? What do i do?...
Whats with the error: must use c++ for header iostream.h? What do i do?
try to put this in your header:
instead of iostream.hCode:#include <iostream> using namespace std;
if that doesn't help then post your entire source code so i can look at it
matheo917
Also, does your source file have a ".C" or a ".CPP" extension? If it's ".C", then change it.
I used to be an adventurer like you... then I took an arrow to the knee.
the second one helped... for some reason my compiler(seen below) doesn't accept using namespace std; well, thanks again.I can't wait for that c++ book to come, it should come today or tommorrow.