我搜索了一个范例程序与CList.But上下工夫我找不到它。我得到了有关CLISTS一些基本定义(即行为类似于双向链表模板类)..和用于存储data..The第一个参数是由list..I看不见存储哪些元素在列表中,以及如何检索它内部存储的总和。在C++中使用CLISTS -Could不明白
RsData Data; //object of class RsData
RsEvent* Event;//pointer to class RsEvent
CList<Event*,Event*> EventQueue;
Data.EventQueue.RemoveAll();
//removing the attributes and methods of the class RsEvent stored in the list.
哪里此栏列表类从何而来?也许你可以提供一个编译的例子? – 2011-04-25 03:57:36
在afxtempl.h ...模板<类类型,类ARG_TYPE = const型&>类分栏列表:公共CObject的{保护:结构CNode {CNode * pNext; CNode * pPrev; TYPE数据; };撑条; }; – Angus 2011-04-25 04:07:11
你为什么不考虑'std :: list'?它在Stroustroup的书“The C++ Programming Language”中有所描述,在STL的书籍中,它是标准的。 – Begemoth 2011-04-25 04:46:22