I have a question.
I created a random queue called queue<char> random;
and pushed random values into it.
I then passed the queue to a function called display_queue
and displayed the queue by popping each element out of the queue. However now none of the elements remain in the queue.
Question: Is there a way so that after I display the elements in the queue using the function, it does not change the queue that was passed to it?
By the way I am using the STL queue.