queue常用方法有:front,size,empty,pop,push。

  需要注意的是queue没有迭代器。所以需要遍历的时候只能使用pop与front来实现。

  优先队列 priority_queue<int,vector<int>,greater<int> > q;