If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Re: Class heirarchy help (classes using eachother)

What you are looking for is called 'forward referencing'.

Code:

// this tells the compiler that there is a class 'a', but
// we are not telling the compiler what it looks like
// the compiler will figure that out later...
class a;
class b;
{
public:
a *some_a_var;
};