//Program to demonstrate use of the Queue template class. #include #include "queue.h" #include "queue.cpp" using std::cin; using std::cout; using std::endl; using QueueSavitch::Queue; int main( ) { char next, ans; do { Queue q; cout << "Enter a line of text:\n"; cin.get(next); while (next != ’\n’) { q.add(next); cin.get(next); } cout << "You entered:\n"; while ( ! q.isEmpty( ) ) cout << q.remove( ); cout << endl; cout << "Again?(y/n): "; cin >> ans; cin.ignore(10000, ’\n’); } while (ans != ’n’ && ans != ’N’); return 0; }