Description
Description: I have supplied you with the template for a heap class (heap.h). You will write a program that creates a heap, and then asks the user to enter values which you will put in the heap (add as many as you like, at least 8), and then display the heap
Then your program will display a menu with the following choices, and perform the appropriate actions
- Display the heap
- Add an item to the heap
- Remove the largest item
- Exit
The program will continue until the user chooses to exit, at which time it will display the heap and exit (and yes, you should have input validation)
For EXAMPLE: