01First in, first out
A queue is a line at a shop counter. New elements join at the back; elements leave from the front. The one that waited longest is served first: "First In, First Out" (FIFO).
In C++: #include <queue> and queue<int> q;. The functions mirror the stack:
push(x): addxat the back;pop(): remove the front element (returns nothing);front()/back(): read the oldest / newest element;size(),empty().
All of them are O(1). As with the stack, front() or pop() on an empty queue is undefined behaviour.