Question: C++ Implement the programming exercise #11 (array implementation of queue) at the end of Chapter 17, overloading both the assignment operator and the copy constructor
C++ Implement the programming exercise #11 (array implementation of queue) at the end of Chapter 17, overloading both the assignment operator and the copy constructor for the class queueType. Also add a member function called debugQueue() to display the current status of a queueType object for debugging and testing purposes. Please note that after copying a queue, you only do operations on the original queue and the copy queue stays unchanged, regardless of further operations. Your copy queue only changes when you make a copy. Your main function would prompt the user with the following menu options and work accordingly. 1) enqueue 2) dequeue 3) copy queue 4) print the original queue 5) print the copy queue 6) debug queue 7) quit
#11. Write the definitions of the functions to overload the assignment operator and copy constructor for the class queueType. Also, write a program to test these operations.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
