struct node
{
char data;
node *lc,*rc;
};
void preorder(node *t)
{
node *s[M],*p=___;
int top=-1;
do
{
while(p!=NULL)
{
____________;
s[++top]=___________;
_________________;
}
if (top!=-1)
{
p=s[top--];
_________;
}
}
while((top!=1)||(p!=NULL));
}
明天上午C程序考试!!最好注释讲解清楚,没注释讲解就直接一起来先序,后序,中序遍历算法,
都要非递归的!!