pq.h

来自「Data Abstraction & Problem Solving with 」· C头文件 代码 · 共 26 行

H
26
字号
// *********************************************************// Header file PQ.h for the ADT priority queue.// Heap implementation.// *********************************************************#include "Heap.h"  // ADT heap operations#include "PQueueException.h"typedef HeapItemType PQueueItemType;class PriorityQueue{public:   // default constructor, copy constructor, and   // destructor are supplied by the compiler// priority-queue operations:   virtual bool pqIsEmpty() const;   virtual void pqInsert(const PQueueItemType& newItem)      throw(PQueueException);   virtual void pqDelete(PQueueItemType& PQueueItemType)      throw(PQueueException);private:   Heap h;};  // end PriorityQueue class// End of header file.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?