今日看一别人写的程序:
typedef struct
{
long a;
char b[10];
int c;
}IVR_QUERY,*PIVR_QUERY;CLIST<PIVR_QUERY,PIVR_QUERY> m_query;请问这么定义个m_query是什么意思?它是什么类型?
typedef struct
{
long a;
char b[10];
int c;
}IVR_QUERY,*PIVR_QUERY;CLIST<PIVR_QUERY,PIVR_QUERY> m_query;请问这么定义个m_query是什么意思?它是什么类型?
就那上面的代码说,她可以把查询的结果都放在m_query里面。
或许换成别的的形势更容易理解:CList<int, int> m_result,意思是有一个集合,这个集合的元素都是int。
就相当于是个数组了吗
还有,那为什么要写两次PIVE_QUERY呢?
class CList : public CObjectParametersTYPEType of object stored in the list.ARG_TYPEType used to reference objects stored in the list. Can be a referenceCList 相當於做了一個鏈表。