c++ type queue code example
Example: stl queue
Functions used here:
q.size() = Returns the size of queue.
q.push() = It is used to insert elements to the queue.
q.pop() = To pop out the value from the queue.
q.front() = Returns the front element of the array.
q.back() = Returns the back element of the array.