I just started programming in C++, and I\'ve tried to create 2 classes where one will contain the other.
File A.h:
A.h
#ifndef _A_h #define
The problem is that you need to include B.h in your A.h file. The problem is that in the definition of A, the compiler still doesn't know what B is. You should include all the definitions of all the types you are using.
B.h
A
B