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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started