User profile: agamatr

User info
User name:agamatr
History
Joined:
Number of posts:28
Latest posts:

How to write a loop to count a queue
Edit: 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 queue
Edit: 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 queue
Yeah 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 queue
Okay 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

User: agamatr

  • Public profile