After completing this assignment you will be able to do the following:
(1) manipulate pointers, (2) allocate memory dynamically, (3) implement a default constructor, copy constructor and destructor, (4) use only one pointer to add to the back and to dequeue from the front of the queue.
Assignment Description: You will implement a doubly-linked circular queue of integers.
Consider the following class declarations when implementing BQUEUE. As always, you must comment your declaration and implementation files, "bqueue.h" and "bqueue.cpp", respectively.
class bqnode { public: int time; bqnode *prev, *next; };
class BQUEUE { public: BQUEUE( ); ~BQUEUE( ); BQUEUE(const BQUEUE &); void Enqueue(int); void Dequeue( ); void Print( ); private: bqnode *back; }; Use the following driver called "bqueue_driver.cpp" to test your code: