c++优先队列(priority_queue)用法详解
摘要:c++优先队列(priority_queue)用法详解 转自csdn的文章,仅作为学习笔记。原文链接:https://blog.csdn.net/weixin_36888577/article/details/79937886 普通的队列是一种先进先出的数据结构,元素在队列尾追加,而从队列头删除。
阅读全文
unordered_map的用法
摘要:原博客:https://www.cnblogs.com/aaronzlq/p/3612629.html C++11引入了很多新特性,比如auto ,比如 for(type v : container)等。 数据结构方面最抢眼的应该是引入了unordered_set和unordered_map。比起普
阅读全文
map用法
摘要:#include using namespace std; struct node{ int x,y; bool operator Map; node temp; temp.x=1,temp.y=1; Map[temp]=1; cout<<Map[temp]<<endl; temp.x=2; cout<<Map[temp]<<end...
阅读全文