数据结构-树
szjezoimzy
这个作者很懒,什么都没留下…
展开
-
数据结构--二叉树
#include <stdio.h> #include <stdlib.h>typedef struct tree { char data; struct tree * lc, * rc; }bit;void creat(bit * & ); void inorder(bit * );//先序遍历 int depth(bit * ); int count(bit * );int ma原创 2017-01-21 21:49:16 · 221 阅读 · 0 评论 -
数据结构--线索二叉树
#include <stdio.h> #include <stdlib.h>typedef struct binary_tree { char data; struct binary_tree * lc, * rc; int ltag, rtag; }bit;bit * pre;void creat(bit * & ); void headnode(bit * & , bit原创 2017-01-22 11:52:37 · 324 阅读 · 0 评论