#include #include "PriQueue.h" // testpq1.cpp // 11.7.98 // G. Volger // Test program to test Priorty Queue class const int MAX = 5; int main () { PriorityQueue theQ; int num; cout << "Testing Priority Queue list class\n" << endl; cout << "Enter " << MAX << " integers" << endl; for (int i = 0; i < MAX; i++) { cout << "Number " << i+1 << ": "; cin >> num; theQ.Enqueue(num); } cout << "\n\nYour " << MAX << " integers removed from the queue are:" << endl; while (!theQ.isEmpty()) { theQ.Dequeue(num); cout << num << " "; } cout << endl; cout << "\n\nEntering two items in the queue" << endl; theQ.Enqueue(1); theQ.Enqueue(2); theQ.makeEmpty(); if (theQ.isEmpty()) cout << "The queue is empty" << endl; else cout << "The queue is not empty" << endl; return 0; }