我最近开始学习 C++ 中的图形.
I have recently started learning graphics in C++.
我在代码块中的程序中尝试了 #include
但它显示错误.然后我从一个站点下载了 graphics.h
标头并粘贴到代码块中的 include 文件夹中,但它显示 graphics.h:No such file or directory代码>.
I tried #include <graphics.h>
in my program in codeblocks but it shows error. Then I downloaded graphics.h
header from a site and pasted in the include folder in codeblocks, yet it shows graphics.h:No such file or directory
.
谁能教我如何在代码块中使用 graphics.h
?
Can anyone teach me how to use graphics.h
in codeblocks?
graphics.h
和winbgim.h
文件复制到编译器目录的include 文件夹中libbgi.a
复制到编译器目录的 lib 文件夹中libbgi.a
文件-lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32
graphics.h
and winbgim.h
files in include folder of your compiler directorylibbgi.a
to lib folder of your compiler directorylibbgi.a
file-lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32
有关详细信息,请访问此链接一>.
For detail information follow this link.
这篇关于如何在代码块中使用 graphics.h?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!