void preorderTraversal(struct node*tree)
{
if (tree != NULL)
{
printf("%d", tree->data);
tree->left=preorderTraversal(tree->left);
tree->right = preorderTraversal(tree->right);
}
}
问问题
22 次