为什么我不能声明其他类的类字段类型?这给了我 C4430 错误:
//Entity.h file
class Entity
{
public:
Box test;
};
class Box
{
public:
double length; // Length of a box
double breadth; // Breadth of a box
double height; // Height of a box
};