Index:
[thread]
[date]
[subject]
[author]
From: Garrett Mitchener <wgm2@acpub.duke.edu>
To :
Date: 02 Feb 1999 15:33:29 -0500
Re: question
It depends on how you wrote your node destructor. If your destructor
deletes all the nodes below it:
Node::~Note()
{
for( every node* in my list )
{
delete the node *
}
}
then deleting the top node will wipe out the whole tree. Otherwise,
it probably only deletes the top node. You can find out for sure by
firing up the debugger and setting a break point at the first line of
the node destructor. That makes it stop each time a node is deleted.
-- Garrett *<:-)
Index:
[thread]
[date]
[subject]
[author]