+ 2

Queue C++ Infinite Loop (error).

I'm trying to do a Queue in C++, everything looks good instead one little detail, when I try to dequeue and print that value, starts an infinite loop, I checked the algorithm and I cannot find the error. Why starts and infinite loop? Here is the code, it's only two files; Queue.h where it has their operations and main.cpp. I thing I'm doing something wrong in the method dequeue but I cannot see the error... https://code.sololearn.com/c54vz044oNiB/#cpp

12th Feb 2019, 8:34 AM
Eduardo Perez Regin
Eduardo Perez Regin - avatar
1 Odpowiedź
- 1
https://code.sololearn.com/W70NWLMWudUY/?ref=app
23rd Feb 2019, 12:49 PM
Fauzi hikmah firdaus
Fauzi hikmah firdaus - avatar