C++中如何获取未知map的key
3条回答 默认 最新
猫叔大鸭梨 2021-04-24 15:17关注for(auto iter = map.begin(); iter != map.end(); ++iter) { iter.first;// =>你要的map的key }本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
for(auto iter = map.begin(); iter != map.end(); ++iter)
{
iter.first;// =>你要的map的key
}