Problem in running C++ program using DOS box? [closed]
The same program which is running in Windows XP is not running in Windows 7 using DOS box. I get an error in opening stdio.h conio.h? How can I overcome this problem?
There's a difference between running and compiling a program. The tags on your question imply that you mean compiling when you write "running". Reading your question with that alteration: The problem is that you've not installed your compiler correctly on the second machine, so that it can locate its header files such as <stdio.h>
. It really has almost nothing to do with the version of Windows NT that you are using, and everything to do with installing the compiler correctly with the right directories, environment variables, and whatnot.
I think you are using old TC compiler . I will suggest you to switch to new compiler gcc. You can download Codeblock IDE with mingw.
If you don't care about the first point. Than make sure you have correct include path in TC . go to options and check include directory..
精彩评论