| 查看: 422 | 回复: 2 | |||
[交流]
【求助】递归建立二叉树的问题 已有2人参与
|
|
二叉树递归建立,谁能给我个输入实例啊~~~ 本人写的程序:(仅供参考) #include 问题补充:#include #include typedef struct binode { char data; binode *lchild; binode *rchild; }bitree; bitree * creatbitree() { char ch; bitree *b; printf("输入\n" ;ch=getchar(); if(ch=='#') { b=NULL; } else { b=(bitree*)malloc(sizeof(bitree)); b->data=ch; b->lchild=creatbitree(); b->rchild=creatbitree(); } return b; } void main() { bitree *bt; bt=creatbitree(); |
» 猜你喜欢
中国地质大学(北京)博士招生补录,数理学院材料科学与工程专业和材料与化工专业
已经有6人回复
收到国自然专家邀请后几年才会有本子送过来评
已经有4人回复
考博
已经有5人回复
26年申博自荐-计算机视觉
已经有4人回复
药化及相关博士的申请
已经有3人回复
一篇MDPI论文改变了学习工作和生活
已经有4人回复


2楼2010-11-18 23:05:44

3楼2010-11-18 23:09:54












;
回复此楼