1 queue<int> q; 2 q.push(1); //向队尾加入元素 3 q.front(); //取队头元素 4 q.pop(); //删除队头元素
queue 简单实用
原文:http://www.cnblogs.com/suwish/p/6647609.html