📄 emp5_28.cpp
字号:
#include "btrechar.h"
void createt(bitre &t,boolean &have_end)
{
if (have_end) t=NULL;
else{
ch=getchar();
if ((ch=='.')||ch=='#'){
t=NULL;
if (ch=='#') have_end=true;
else have_end=false;
}else{
t=(bitre)malloc(sizeof(struct bnode));
t->data=ch;
createt(t->lchild,have_end);
createt(t->rchild,have_end);
}
}
}
void main()
{
bitre t;
boolean have_end;
have_end=false;
createt(t,have_end);
display_bitre("asd",t);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -