Friday, 15 July 2011

Delete a node in tree.

clear(struct node* temp)
{
if (temp != NULL)
{
clear(temp->left);
clear(temp->right);
delete temp;
}
}

No comments:

Post a Comment