1.遍历map/unordered_map
for(unordered_map<int,int>::iterator iter = freq.begin(); iter != freq.end(); iter ++ )
2.遍历queue/priority_queue
while(!pq.empty()){
/*一顿操作*/
pq.pop();
}
1.遍历map/unordered_map
for(unordered_map<int,int>::iterator iter = freq.begin(); iter != freq.end(); iter ++ )
2.遍历queue/priority_queue
while(!pq.empty()){
/*一顿操作*/
pq.pop();
}