65,186
社区成员




void Levelsorder(BTNode *bt)
{ BTNode p;
SqQueue sq;
InitQueue(&sq);
EnQueue(&sq,bt);
while(sq.front!=sq.rear)
{ DelQueue(&sq,&p);
printf("%5c",p.data);
if(p.lchild) EnQueue(&sq,p.lchild);
if(p.rchild) EnQueue(&sq,p.rchild);
}
}