If you add something to a queue that is full, you should get an error condition, unless you just did a terrible job coding it.
I should have stated that it is a homework question in the book. I just wanted some guidance on what would happen if the max said 5 but looking at the array in the question, there were 5 characters. The Enqueue operation that's trying to add another letter would, I thought, cause the overflow condition.
C++ has strict typing. Polymorphism is possible, but in a book example about queues?... there are currently 4 letters and 1 number in that queue
I should have stated that it is a homework question in the book. I just wanted some guidance on what would happen if the max said 5 but looking at the array in the question, there were 5 characters. The Enqueue operation that's trying to add another letter would, I thought, cause the overflow condition.