I get this error "This Program cannot be run under dos" when i compile and try to run this.
do i not know something?Code:#include <iostream.h> int main() { std::cout << "Test\n"; int x; std::cin >> x; return 0; }
I get this error "This Program cannot be run under dos" when i compile and try to run this.
do i not know something?Code:#include <iostream.h> int main() { std::cout << "Test\n"; int x; std::cin >> x; return 0; }
You use the old *.h and the new std namespace?
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
What compiler are you using?
9/10 of the voices in my head believe that you are compiling a Win32 Console app
i learned to use iostream.h? umm u have to use namespace std or something? talk to jessie liberty about that one.
how do u compile a dos exe? special compiler or someting?
You would need a genuine DOS compiler, like Turbo C.
life makes sense now, though i said screw dos, and got MSVC++ :-D