大頂堆實(shí)現(xiàn)一個優(yōu)先隊(duì)列。對于隊(duì)列的操作應(yīng)該至少支持下列幾種指令:
Void enqueue[int ObjectID, int Priority]
Int dequeue[]
Void changeweight[int ObjectID, int newPriority]...
if the method is to be made void, then it cannot have a return statement, all it can do is set the value. Your SeatReserved variable is already a glob...