//not the total code
void Tree::InOrderTree()
{
if(root==NULL)
return;
InOrderTree(root);
}
void Tree::InOrderTree(Node *current)
{
if(current!=NULL)
{
InOrderTree(current->left);
cout<data<<" ";
InOrderTree(current->right);
}
}
阅读(1215) | 评论(0) | 转发(1) |