I have two classes, ClassA and ClassB.
ClassA needs a global variable of ClassB and ClassB needs one of ClassA.
Therefore the header file for ClassA needs to be included in ClassB's header file and ClassB's header file needs to be included in ClassA's.
However the compiler does not like this.
I get the compiler error "'ClassA' : missing decl-specifiers" when I try to declare ClassA in ClassB.
can anyone help?