check.h
以下を定義するヘッダーファイル" "がありますstruct
:
#ifndef CHECK_H
#define CHECK_H
#include<string>
struct Test{
std::string check;
};
#endif
上記で定義test.h
したリターンタイプの次の関数を持つ別のヘッダーファイル" "があります。struct Test
#ifndef TEST_H
#define TEST_H
#include<string>
#include "check.h"
Test display(std::string);
#endif
しかし"check.h"
、このヘッダーファイルにインクルードしても、unable to resolve identifier
エラーが発生します。これを修正するにはどうすればよいですか?