请问clist是不是只能存放int和cstring两中类型的数据呀
如果我想把一个类对象存在里面怎么做呀?class CClientSockets : public CSocket这是我的从CSocket派生的一个类,现在想把他存储在clist中,但发现不行
我只知道clist的定义有两种,就是int和csting
CList<int,int> m_lstSocket;但是他不能存储我要的CClientSockets类对象,下面这样写来又是错的:
CList<CClientSockets,CClientSockets> m_lstSocket;报的错误是:
c:\program files\microsoft visual studio\vc98\mfc\include\afxtempl.h(1066) : error C2664: 'struct __POSITION *__thiscall CList<class CClientSockets,class CClientSockets>::AddTail(class CClientSockets)' : cannot convert parameter 1 from 'class CClien
tSockets' to 'class CClientSockets'
        No copy constructor available for class 'CClientSockets'请问我该怎么做呢?