View Single Post
Old Apr 6th, 2006, 10:33 PM   #13
cwl157
Professional Programmer
 
Join Date: Feb 2005
Posts: 346
Rep Power: 4 cwl157 is on a distinguished road
alright how do i account for the case of only a root value because when there is only a root value it does not print out that it is deleting it. It deletes fine it just does not print out the value. I assume an if statement of
if(root->left->getValue() == NULL && root->right->getValue() == NULL)
    cout << "Deleted Value = " root->getValue();
would work but where do i put it? Just next to the other printing thing in the deleteSpot method?
cwl157 is offline   Reply With Quote