33,027
社区成员




void inorder_nonrecursive(tree root)
{
tree stack[100];
int top = 0;
tree p = root;
while (NULL != p || top > 0)
{
while (NULL != p)
{
stack[top++] = p;
p = p->left_child;
}
p = stack[--top];
printf("%d\t", p->data);
p = p->right_child;
}
}