Sorry! We could not find what you were looking for
Try going back to the main page here
Binary Search Tree MAKEEMTPY Operation
//---- public makeEmpty ( ) -----
template
void BST::makeEmtpy ( )
{
// just call private method
makeEmpty ( root );
}
//---- private makeEmpty ( ) ------
template
void BST::
makeEmpty ( BinaryNode * & t )
{
if ( t != NULL )
{
makeEmpty ( t->left );
makeEmpty ( t->right );
delete t;
}
}
Wednesday, 05-Jan-2000 15:49:44 EST
Sorry! We could not find what you were looking for
Try going back to the main page here
Sorry! We could not find what you were looking for
Try going back to the main page here