The problem is that I have 2 class prototypes that need to recognize one another before they can actually be written.
example..
1 2 3 4 5 6 7 8 9 10 11
class A
{
//member function prototypes here need
//to recognize class B.
};
class B
{
//member function prototypes here need
//to recognize class A.
};
So no matter what order they are written in, I will always get a compile error. Any solutions to this?
I tried putting each of the class prototypes in their own header file with the other one included using #include, but this won't work because the header files must be protected from multiple inclusion.. the pre-processor would run in an infinite loop otherwise i think. Thanks for any help.