虽然我在我的实现中包含了类的头文件,如:
#include<Utility.h>
我仍然会遇到致命错误:Utility.h:没有这样的文件或目录
有什么想法吗?我当前项目文件夹中的Utility.h和Utility.cpp
答案 0 :(得分:0)
#include "Utility.h"
这是包含您编写的并且在项目中的.h文件的方法。
答案 1 :(得分:0)
#include <file>
This variant is used for system header files. It searches for a file named file in a standard list of system directories.
#include "file"
This variant is used for header files of your own program. It searches for a file named file first in the directory containing the current file, then in the quote directories and then the same directories used for <file>.