开发者

Problem in running C++ program using DOS box? [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geog开发者_运维百科raphic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 9 years ago.

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.


  1. 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.

  2. 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..

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜