在c++中使用curl -无法理解

Using CLists in c++ -Could not understand

本文关键字:curl c++      更新时间:2023-10-16

我搜索了一个示例程序来处理CList。但是我找不到它。我得到了一些关于eks的基本定义(行为类似于双重链表的模板类)。第一个参数是由列表内部存储的,我不知道列表中存储了哪些元素,也不知道如何检索它。

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.

doc是MSDN上的CList

这里有一个收集示例的链接:说明MFC收集类

我不知道为什么没有找到这个文档,所以也许你的问题需要澄清。

列表提供了前/后插入和查找,以及迭代的方法。

// Define myList.
CList<CString,CString&> myList;
// Add an element to the front of the list.
myList.AddHead(CString("ABC"));
// Verify the element was added to the front of the list.
ASSERT(CString("ABC") == myList.GetHead());