123456789101112131415161718192021222324252627282930
#include <iostream> class A; class B { public: int bInt; A a; int get_bInt() { return bInt; } }; class A { public: int aInt; int get_aInt() { return aInt; } }; void main() { return; }
123456789
class A; class B{ A *a; //OK. sizeof(B) == sizeof(A *) }; class C{ A a; //Not OK. sizeof(C) == ??? };