Compiler error C4430: missing type specifier - int assumed [duplicate]
C++ 기초 에러.
I have this error:
"error C4430: missing type specifier - int assumed. Note: C++ does not support default-int"
with this code example :
//A.h
#include "B.h"
class A{
B* b;
..
};
//B.h
#include "A.h"
class B{
A* a; // error error C4430: missing type specifier - int assumed.
}
A.h
inB.h
, forward declaration is enough. Such as: