|
-
May 18th, 1999, 10:12 AM
#1
CList
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?!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|