Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. template <class Type>
  2. void queueType<Type>::deleteQueue()
  3. {
  4. if (!isEmptyQueue())
  5. {
  6. count--;
  7. queueFront = (queueFront + 1) % maxQueueSize; //use the
  8. //mod operator to advance queueFront
  9. //because the array is circular
  10. }
  11. else
  12. cout << "Cannot remove from an empty queue" << endl;
  13. } //end deleteQueue
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement