map>.

xuegao007 xuegao007 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我想这样用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) );


请大家帮我分析下。
...全文

相关推荐

评论 12
收藏 已收藏
分享
返回顶部
xuegao007
C++ 语言 65,214 成员 250,514 内容