📄 emp5_14.cpp
字号:
// emp5_14 }
#include "btrechar.h"
bitre insuct(bitre p,bptrlink ptrt,bptrlink ptrpre)
{
bitre q;
bptr_point_to(ptrt, p);
getch();
if (p!=NULL){
q=p->rchild;
bptr_point_to(ptrpre, q);
getch();
if (p->rtag==0)
while (q->ltag==0)
{
q=q->lchild;
bptr_point_to(ptrpre, q);
getch();
}
return q;
}
}
void main()
{
bitre t,p,tin;
int k;
bptrlink ptrt,ptrpre;
load_bitre_file(t,"bitres\\full41.cbt");
display_bitre("t",t);
in_thread_bitre(t,tin);
display_threaded_bitre("tin",tin);
disp_thbitre("pppp",tin);
Wait();
p=tin;
window(1,1,80,4);
create_bptr(ptrt, " P");
create_bptr(ptrpre, "q");
if (p!=NULL){
while (p->ltag==0)
{
p=p->lchild;
bptr_point_to(ptrpre, p);
getch();
}
while (p!=NULL)
{
printf("%c",p->data);
p=insuct(p,ptrt,ptrpre);
}
}
getch();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -