A
Adam Hartshorne
Hi All,
I am a relative newbie to c++, and at the moment am trying to achieve
the following.
For a particular reason I have two classes, and within each I have a
variable of type "pointer to other class". Therefore I need to #include
"Class B" in the .h file of Class A and vice versa. However as soon as I
do this I get a mass of compiler errors, which if I take out one or the
other includes and comment out the pointer variable disappear.
Therefore I assume that it is something to do with the including of the
header files that I am doing wrong.
Adam
I am a relative newbie to c++, and at the moment am trying to achieve
the following.
For a particular reason I have two classes, and within each I have a
variable of type "pointer to other class". Therefore I need to #include
"Class B" in the .h file of Class A and vice versa. However as soon as I
do this I get a mass of compiler errors, which if I take out one or the
other includes and comment out the pointer variable disappear.
Therefore I assume that it is something to do with the including of the
header files that I am doing wrong.
Adam