typedef CList List_Array;是什么意思解决思路
typedef CList <ListInfo,ListInfo&> List_Array;是什么意思
typedef struct LISTINFO{
//int num;//the number
int P_S_num;//standard value
int V_num;//voletage value
}ListInfo;
typedef CList <ListInfo,ListInfo&> List_Array;
------解决方案--------------------
把CList <ListInfo,ListInfo&> typedef成 List_Array,方面以后的定义
// CList is a template class that takes two template arguments.
// The first argument is type stored internally by the list, the
// second argument is the type used in the arguments for the
// CList methods.
------解决方案--------------------
typedef struct LISTINFO{
//int num;//the number
int P_S_num;//standard value
int V_num;//voletage value
}ListInfo;
typedef CList <ListInfo,ListInfo&> List_Array;
------解决方案--------------------
把CList <ListInfo,ListInfo&> typedef成 List_Array,方面以后的定义
// CList is a template class that takes two template arguments.
// The first argument is type stored internally by the list, the
// second argument is the type used in the arguments for the
// CList methods.
------解决方案--------------------
- C/C++ code
typedef CList <ListInfo,ListInfo&> List_Array; /* 假设A代表CList <ListInfo,ListInfo&> B代表List_Array 这句话的意思是给A取一个绰号叫做B */