map>.
我想这样用map<int, CArray<int, int&>>.
但在insert时提示错误
error C2248: 'CObject::CObject' : cannot access private member declared in class 'CObject'
1> d:\program files\microsoft visual studio 8\vc\atlmfc\include\afx.h(553) : see declaration of 'CObject::CObject'
1> d:\program files\microsoft visual studio 8\vc\atlmfc\include\afx.h(524) : see declaration of 'CObject'
map<int, CArray<int, int&>> m;
typedef pair <CString, CArray<int, int&>> Str_IntAry;
m.insert( Str_IntAry("csdn", ary) );
请大家帮我分析下。
但在insert时提示错误
error C2248: 'CObject::CObject' : cannot access private member declared in class 'CObject'
1> d:\program files\microsoft visual studio 8\vc\atlmfc\include\afx.h(553) : see declaration of 'CObject::CObject'
1> d:\program files\microsoft visual studio 8\vc\atlmfc\include\afx.h(524) : see declaration of 'CObject'
map<int, CArray<int, int&>> m;
typedef pair <CString, CArray<int, int&>> Str_IntAry;
m.insert( Str_IntAry("csdn", ary) );
请大家帮我分析下。
...全文
相关推荐
python中将\\uxxxx转换为Unicode字符串的方法
主要介绍了python中将uxxxx转换为Unicode字符串的方法,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧
没有可用的复制构造函数或复制构造函数声明
map使用std::map<int, CArray > 错误, 解决: 重写CArray, 重载构造函数并加const 添加操作 operator =
深入解析unsigned int 和 int
以下是对unsigned int和int进行了详细的分析介绍,需要的朋友可以过来参考下
int128_c++int128_
c++中int128的输入输出int128常用于1e30内的大数
Go语言string,int,int64 ,float之间类型转换方法
Go语言中int类型和string类型都是属于基本数据类型,两种类型的转化都非常简单。下面通过本文给大家分享Go语言string,int,int64 ,float之间类型转换方法,感兴趣的朋友一起看看吧


