Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template <class Type>
- void queueType<Type>::deleteQueue()
- {
- if (!isEmptyQueue())
- {
- count--;
- queueFront = (queueFront + 1) % maxQueueSize; //use the
- //mod operator to advance queueFront
- //because the array is circular
- }
- else
- cout << "Cannot remove from an empty queue" << endl;
- } //end deleteQueue
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement