[MaxHeap] /*최대힙, MaxHeap*/#include #include #include using namespace std; template class MaxPQ{public: virtual bool IsEmpty() = 0; virtual void Push(const T &item) = 0; virtual void Pop() = 0; virtual T &Top() const = 0;}; template class MaxHeap :public MaxPQ{private: T *heap; int capacity; int heapSize; //원소 개수public: MaxHeap(int theCapacity = 10) { if (theCapacity < 1) { cout