Advertisement
towniyan

Untitled

Apr 22nd, 2018
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.45 KB | None | 0 0
  1. #ifndef PQ_TYPE_H
  2. #define PQ_TYPE_H
  3.  
  4. #include "heaptype.h"
  5. #include <iostream>
  6.  
  7. using namespace std;
  8.  
  9. class FullPQ {
  10.  
  11. };
  12.  
  13. class EmptyPQ {
  14.  
  15. };
  16.  
  17. template <typename T>
  18. class PQType {
  19.     int length;
  20.     HeapType<T> items;
  21.     int maxItems;
  22.  
  23. public:
  24.     PQType(int);
  25.     ~PQType();
  26.     void MakeEmpty ();
  27.     bool IsEmpty();
  28.     bool IsFull();
  29.     void Enqueue(T);
  30.     void EnqueueMin(T);
  31.     void Dequeue(T&);
  32.     void DequeueMin(T&);
  33.     void PrintQueue();
  34. };
  35.  
  36. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement