02-20-2006, 11:42 PM
I'm sure that I'm just using it wrong:
When I call my PrintLinkedList sub, it shows that nothing was removed.
Code:
Sub DestroyLinkedList(l as LinkedList)
dim p as ListElement ptr
dim c as ListElement ptr
p = l.Head
do while( p <> 0)
c = p
p = p->enext
deallocate c 'remove list element
loop
deallocate @l 'remove last traces of list
End Sub
When I call my PrintLinkedList sub, it shows that nothing was removed.
f you play a Microsoft CD backwards you can hear demonic voices. The scary part is that if you play it forwards it installs Windows.