Click to See Complete Forum and Search --> : CList


May 18th, 1999, 10:12 AM
If these is a hierarchal structure, how do I declare the relative structure with and CList and it derived class such as CTypedPtrList?!
For example, class B is consisted of many objects of class A
class C is consisted of many objects of class B
class D is consisted of many objects of class C
...
followings are my opinion:
class B { CList<A, A> A_List; };
class C { CTypedPtrList<CObList, B*> B_List};
class D { CTypedPtrList<CObList, C*> C_List};
....
But lots errors appear when compiling the class D
How can I declare these classes?!