当我想包含头文件时,它显示"Cannot open include file: graphics.h: no such files or directory"。
我一直在windows xp中使用turbo c++编译器,但我昨天已经安装了windows 7,现在我有一个小问题,turbo c++不能在windows 7最终64bit中工作。
检查包含目录设置,确保它们引用了正确的位置,并且graphics.h
位于该位置。我假设您正在使用
#include <graphics.h>
而不是
#include "graphics.h"
我不确定代码是否需要更改(因为它之前可能正在编译),但更多的你需要添加一些文件夹到系统包含路径。
我也很好奇为什么你会使用TurboC++。我仍然在工作中使用VC6,我认为这是古老的!