1、 建议搂主用mfc中的cmap: map<int,int,CString,CString> pFunList;2、c++中的map类定义如下,不符合搂主的要求 template < class Key, class Type, class Traits = less<Key>, class Allocator=allocator<pair <const Key, Type> > > class map
#include <map> using namespace std; map<int, CString> pFunList; 这样就行了 Key: int Context: CString object还是使用模板原形看着舒服 MFC的 恶心包装 -_-!
就可以了如果要定义复合结构,后面应该用结构体
建议搂主用mfc中的cmap:
map<int,int,CString,CString> pFunList;2、c++中的map类定义如下,不符合搂主的要求
template <
class Key,
class Type,
class Traits = less<Key>,
class Allocator=allocator<pair <const Key, Type> >
>
class map
using namespace std;
map<int, CString> pFunList;
这样就行了 Key: int
Context: CString object还是使用模板原形看着舒服 MFC的 恶心包装 -_-!