Please write a .h class file called PQueue containing the following components p
ID: 3672540 • Letter: P
Question
Please write a .h class file called PQueue containing the following components provided by the UML below. a test .cpp file is added to check if the class is usable.
Thanks in advance.
Use the above UML diagram to write a class implementing a priority queue implemented as a heap The class has the following attributes: PQueue -queue int* length: int capacity int -reheapUp( root int, bottom: int) void reheapDown( root int, bottom int) void +PQueue int: +PQueue( rhs: PQueue& íquery) + PQueue) +operator-( rhs PQueue& (query)) PQueue& +operator(rhs: PQueue& íquery): bool +operatorExplanation / Answer
Source code link :
https://drive.google.com/file/d/0B9P4w87kevGhOEpjRlZtT3h4SFU/view?usp=sharing