首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

STL联系关系容器

2013-04-02 
STL关联容器 mapstring,int::iterator im.find(guoliqiang)提示no matching function for call to

STL关联容器
 map<string,int>::iterator i=m.find("guoliqiang");
提示no matching function for call to 'std::map<const char*, int>::map(const char [6], int)'
这是啥子问题?

[解决办法]
根据代码提示,貌似是在m的构造那里出错了,而不是find这里...

热点排行