Er.. no!
In your screen shot it shows the actual contents of head and tail and the actual memory address. On your system the memory address to show will almost certainly be different from that shown on the screen shot!Code:inline LList::LList(void) { cerr << "head = tail = 0 at 0024f8d0\n"; _head = 0; _tail = 0; front = 0; }
and doesn't that tell you something??? so why does your program crash? It's no good just commenting out some code because it causes problems - you MUST understand why this causes the problem by using the debugger and then fix it!!!I commented out the destructor because as soon as I ran my code, the program crashed.




Reply With Quote
