Nice try on the code tags, try using the preview button first before submitting them (it's [code], not ).
int current;
current = rear;
do{
current = (current + 1) % maxQue;
std::cout << items[current] << std::endl;
}while(current != front);
First you tell the compiler to start at theend of the list. Then you tell it to keep looping forward until it reaches the front of the list. ????
You're printing everything except the items in the list.
length() ? Hint: subtraction and abs .
John A
Vampirical Lurker
7,630 posts since Apr 2006
Reputation Points: 2,240
Solved Threads: 339