0

私の実装には、次のようなクラスのヘッダー ファイルが含まれていますが、

#include<Utility.h>

それでも致命的なエラーが発生します: Utility.h: No such file or directory

理由はありますか?現在のプロジェクト フォルダーの Utility.h と Utility.cpp

4

2 に答える 2

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>. 
于 2013-08-22T11:54:08.763 に答える
0
#include "Utility.h"

これは、作成した .h ファイルをプロジェクトに含める方法です。

于 2013-08-22T11:42:57.987 に答える