尽管我在实现中包含了一个类的头文件,例如:
#include<Utility.h>
我仍然收到致命错误:Utility.h:没有这样的文件或目录
有什么想法吗?我当前项目文件夹中的 Utility.h 和 Utility.cpp
#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>.
#include "Utility.h"
这是包含您编写并位于项目中的 .h 文件的方法。