Arrays and collections

#include <iostream>
#include <queue>
using namespace std;

queue<int> intQueue;
intQueue.push(1);
intQueue.push(3);
intQueue.push(5);

int top = intQueue.front();
//top is 1
int first = intQueue.front();
//first is 1
intQueue.pop();
int second = intQueue.front();
//second is 3
intQueue.pop();
int third = intQueue.front();
//third is 5

cout << "top is " << top << endl;
cout << "first is " << first << endl;
cout << "second is " << second << endl;
cout << "third is " << third;