Demonstrate your understanding of the C++ Priority Queue Abstract Data Type ( ADT ) by writing a program that will demonstrate the basic operations of a priority queue: Enqueue Dequeue Peek IsEmpty GetLength Demonstrate these operations with any program you would like to write. In fact, if -after reading through the information on priority queues you feel they would be a useful tool for your semester project, feel free to prototype your idea using this lab. You will notice in the demo, I used a priority queue to demonstrate a leaderboard from an example game. The demo I provided is much more complex than what is expected for this lab, but it demonstrates the use of a priority queue in a larger program.
Please write comments in the code specifying what it does.
Specifications:
Demonstrate your understanding of the C++ Priority Queue Abstract Data Type ( ADT ) by writing a program that will demonstrate the basic operations of a priority queue:
- Enqueue
- Dequeue
- Peek
- IsEmpty
- GetLength
Demonstrate these operations with any program you would like to write. In fact, if -after reading through the information on priority queues you feel they would be a useful tool for your semester project, feel free to prototype your idea using this lab.
You will notice in the demo, I used a priority queue to demonstrate a leaderboard from an example game. The demo I provided is much more complex than what is expected for this lab, but it demonstrates the use of a priority queue in a larger program.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps