posted 19 years ago
Phew, I'm glad to hear I'd understood. Thanks!
Is this way of calculating the front and back of the queue (using modulo arithmetic) a fairly common implementation of a static queue? Also, are there other useful methods that you would normally expect to see in a queue class? I'm guessing the book has presented a rather barebones version in order not to obscure the essential characteristics of queues...
I realize that it might be preferable to use a linked list, though - would just like to make sure I've understood this properly.
Thanks,
flo
[ January 18, 2005: Message edited by: Flo Powers ]