*

closed account (LzvqM4Gy)
*
Last edited on
good luck...
hints:

use head and tail to store indexes of the first and last element

use % (modulus) operator to wrap the indices around to the beginning as they are incremented

check for empty queue and full queue
http://cplusplus.com/forum/general/63344/

If you're going to try to get someone to do your homework for you at least learn to double-post in a different forum!
Topic archived. No new replies allowed.