首先是下载ege和easyx图形库。
初步问题
对于ege图形库,把解压出来的graphics.h和libgraphics64.a库文件放进vscode的文件夹里,光这样是不行的。
仍然会提示找不到头文件。
要解决这个问题,必须了解vscode对于头文件的包含规则
Where are the include paths defined?
The include paths are defined in the “includePath” setting in a file called c_cpp_properties.json located in the .vscode directory in the opened folder.
You can create or open this file by either using the “C/Cpp: Edit Configurations” command in the command palette or by selecting “Edit “includePath” setting” in the lightbulb menu (see the screenshot below). The quickest way to locate a lightbulb is to scroll to the top of the source file and click on any green squiggle that shows up under a #include statement.
include 路径是怎么被定义的?
它是在 c_cpp_properties.json 文件里设定的,修改方法: