STL队列
cnyali_szsh348
这个作者很懒,什么都没留下…
展开
-
BFS+STL队列复习2018-08-15
首先,复习一下小小的STL基本运用: #include <bits/stdc++.h> using namespace std; struct hzr{int x;int y;}; queue<hzr>q; int main(){ int n;原创 2018-08-15 20:47:10 · 294 阅读 · 1 评论 -
队列 2018-12-9
队列的特征是先进先出。 一般用f(first)表示队首,用l(last)表示队尾,然后进行操作 两种方法: 1.STL法: #include <bits/stdc++.h> using namespace std; queue <int> q; int n; int main(){ scanf(&am原创 2018-12-09 19:34:57 · 102 阅读 · 0 评论