Question: C++ help please.. I am having trouble with priority_queue 1. Make a priority queue that uses a Student's GPA for the sort criteria. Add some
C++ help please.. I am having trouble with priority_queue
1. Make a priority queue that uses a Student's GPA for the sort criteria. Add some Student Objects and show that the next one popped is the highest GPA.
2. Make a priority queue that uses a Student's Debt for the sort criteria. Add some Student pointers for dynamically created Students and show that the next one popped is the one with the least debt.
I have the code for everything else but the priority_queue because that is what I am having trouble with.. The output that i get is an address of the pointer and not the information itself. Please explain the steps if you can so i can hopefully understand it better. Thank you!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
