How to removeBack from a doubly linked list?
post a complete testcase, we need to be able to compile and run your program.
the problem may be somewhere else, like in enqueue().
by the way
1 2
|
head = NULL;
delete head; //delete NULL, that does nothing
|
memory leak.
Topic archived. No new replies allowed.