|
|
|
|
|
by iano
4422 days ago
|
|
Can someone explain to me how the first queue example's (using singly link lists) dequeue method gives the expected result? Isn't head->m_pNext always NULL, so the new head will always be NULL and tail will be set to NULL losing the rest of the queue? Seems like you should need to traverse the list to dequeue. Where did I go wrong? |
|