考研数据结构之二叉树的遍历
#仅作为考前练习(C语言实现)
#include <stdio.h>
#include <stdlib.h>
typedef struct bnode{
char data ;
struct bnode* lchild;
struct bnode* rchild;
}BTNode,*BTree;
void pre_create_tree(BTree* h)
{
char ch;
scanf("%c",&ch);
if(ch == '#'){
*h = N
原创
2020-07-27 14:38:54 ·
135 阅读 ·
0 评论