queue 简单实用

1 queue<int> q;
2 q.push(1); //向队尾加入元素
3 q.front(); //取队头元素
4 q.pop(); //删除队头元素

 

posted @ 2017-03-30 18:22  suwish  阅读(121)  评论(0)    收藏  举报