+ 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
1 ответ
- 1
https://code.sololearn.com/W70NWLMWudUY/?ref=app