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
when you define the class A, in A.h, you explicitely say that the class has a member B.
You MUST include "B.h" in "A.h"