queue

how to make a queue program that has a property that it takes prority and when performing dequee it prefer to the prority and then fifo operation if needed...
plz help me
STL provides a priority_queue class in the <queue> header.

http://www.cplusplus.com/reference/stl/priority_queue/
You can always make a class that contains an STL container and add particular methods to manipulate it differently.
Topic archived. No new replies allowed.