📄 7-3.c
字号:
#include "stdio.h"
typedef char DataType;
struct BiTNode {
DataType data;
struct BiTNode *lchild,*rchild;
};
typedef struct BiTNode BitTree;
void posorder(BitTree *p)
{
if(p!=NULL)
{
posorder(p->lchild); /*中序访问左儿子*/
printf("%c",p->data);
posorder(p->rchild); /*中序访问右儿子*/
}
}
void main()
{
BitTree *p;
posorder(p);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -