Question: Question 3: [3 marks] For QueueArray class, implement the following member function cancelValues, that received an array canceled values[] and it is size, to remove
![Question 3: [3 marks] For QueueArray class, implement the following member](https://s3.amazonaws.com/si.experts.images/answers/2024/08/66c56b6ec19e1_12666c56b6e33ef4.jpg)
Question 3: [3 marks] For QueueArray class, implement the following member function cancelValues, that received an array canceled values[] and it is size, to remove all members of canceled values[] from the QueueArray. Example. The QueuArray Q1 contains {10,30,40,50,80,90,100}, cv array contains [10,80,90}. Running Q1.cancelValues (cv,3) will make the array in Q1={30,40,50,100}. template T> class QueueArrax \{ public: QueueArrax(int cap); QueueArrax(); void enqueue(T\& val); T dequeuer(); bool is empty (); bool is full(); void clear(); void cancelValues( T canceled value[], int size); private: T data; int capacity, size, first, last; 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
