2013年10月15日

二叉树的建立和递归遍历

摘要: const int MAXN = 1000010;//二叉树的节点的结构体的表示形式struct Node{ char data; struct Node *leftchild,*rightchild;}BTree;//栈的结构体的表示形式struct sstack{ BTree *map_stack[MAXN]; int top;}Stack;//队列的结构体的表示形式struct qqueue{ BTree *map_queue[MAXN]; int head; int tail;}Queue;//创建二叉树,利用递归的方法BTree *BuildTree(){ char char_str 阅读全文

posted @ 2013-10-15 15:02 天使是一个善良的神 阅读(256) 评论(0) 推荐(0) 编辑

导航