| 查看: 475 | 回复: 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(); |
» 猜你喜欢
浙江师范大学是怎么坑我的
已经有15人回复
浙江师范大学是怎么坑我的
已经有4人回复
闲聊
已经有6人回复
江苏省自然基金 什么时候出结果
已经有7人回复
求教各位大神:2026教育部人文社科青年基金项目何时公示呀?
已经有6人回复
面上有专家说实验设备不是我们单位的
已经有8人回复
科研求助
已经有4人回复


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

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









;
回复此楼