CH5_7.C
上传用户:lgb298
上传日期:2013-03-22
资源大小:1025k
文件大小:0k
- void crt_bt_pre(JD *bt)
- { char ch;
- printf("ch=");
- scanf("%c",&ch);
- getchar();
- if(ch=='') bt=NULL;
- else
- { bt=(JD *)malloc(sizeof(JD));
- bt->data=ch;
- crt_bt_pre(bt->lchild);
- crt_bt_pre(bt->rchild);
- }
- }