Ive tryed defining them in two files:
ClassA.h:
#include "ClassB.h"
class cA{
private:
cB* pointer;
};
ClassB.h:
#include "ClassA.h"
class cB{
private:
cA* pointer;
};
but get errors saying class B is undefined and it cant make a pointer.
Ive also tryed having both classes in the same file but that produces similar results, am I missing something realy obvious or is it imposible to create this sort of 'loop' structure?
Thanks in advanced for any help