//先进先出
//队头 队尾
//删除队尾麻烦
//线性的存储表
//队列
//初始化
queue<int> q3;
queue<int> q4({ 3,4,6,342 });
queue<int> q5(q4);
//添加
q3.push(1);
q3.push(12);
q3.push(132);
q3.push(41);
int v100 = q3.front(); //不删除
int v101 = q3.back();
//队列的方式最多
while (!q3.empty())
{
int tempa = q3.front();
cout << tempa << endl;
q3.pop(); //弹出头部
}
q3.emplace(100);
q3.size();
queue<int> q100;
q3.swap(q100);
swap(q100, q3);