I have the following 2 classes:
class A{
B * b;
....
};
class B{
A * a;
....
};
The problem is I cannot declare class A without declaring class B first, and
vice versa, as each declares a variable of the other class. How do I solve
this problem?
Thanks in advance,
Lem
class A{
B * b;
....
};
class B{
A * a;
....
};
The problem is I cannot declare class A without declaring class B first, and
vice versa, as each declares a variable of the other class. How do I solve
this problem?
Thanks in advance,
Lem
Comment