| huh? Sorry I did not really understand that. DeleteMin is a function to return the highest priority into an Etype & E as a reference. I know how to do this if the Etype was an integer. But I don't know how to return it into my patient's class' set method. If for example I wanted to return the highest priority I would simply just PQ.DeleteMin(int priority); and now the highest priority will be deleted and sent into the integer priority. but my Etype is a class and not an integer. In my class I have a private integer called priority. I have a setPriority and getPriority method basically just setPriority(in priority); I have made a priority queue of Patients which is a class I created. I am confused on what to do next. I want to be able to know which patient has the highest priority and print that out. |