摘要:
#include <stdio.h>#include <stdlib.h>#define MaxSize 100typedef struct node{char data;/*此例中二叉树的结点采用字符类型*/struct node *lchild,*rchild;}NODE;/*按先序遍历序列创建二叉树的二叉链表*/NODE *crt_bt_pre(){NODE *bt;char ch;flushall();scanf("%c",&ch);if(ch == '0')bt = NULL;else{bt = new NODE;b 阅读全文
posted @ 2012-06-17 13:56
蓬莱仙羽
阅读(402)
评论(0)
推荐(0)

浙公网安备 33010602011771号