How to write a loop to count a queueEdit: Is this correct? [code]int queue::elements () { int i; int x = 0; if(empty()) return 0; el...
How to write a loop to count a queueEdit: I just realized that you never called q.elements(); in your program to show how many elements ...
How to write a loop to count a queue[code]for (i = front+1; i != (rear + 1) % queue_size; i = (i + 1)%queue_size)[/code]
How to write a loop to count a queueYeah I changed both of them to front+1..I can post the application file too but I'm pretty sure that...
How to write a loop to count a queueOkay now it works but I'm not sure if the results are correct.. After I enqueue 5 characters it says...
This user does not accept Private Messages