queue

Dec 23, 2011 at 4:31am
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
Dec 23, 2011 at 4:47am
STL provides a priority_queue class in the <queue> header.

http://www.cplusplus.com/reference/stl/priority_queue/
Dec 24, 2011 at 6:58am
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.