![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
树
喋喋语
这个作者很懒,什么都没留下…
展开
-
构造树
构造树: struct { char c; tree *lchild; tree *rchild;};tree *build (){ tree * t; t= malloc(tree); scanf("%c",&c); if(c=='#') t=null; else { t->c=c; t...原创 2018-05-25 21:38:48 · 614 阅读 · 0 评论 -
树的构造及其遍历(转)
#include <iostream> #include<algorithm> #include<stdlib.h> #include<stdio.h> #include<string.h> #include<math.h> #include<deque> #include<queue>转载 2018-06-09 14:30:24 · 246 阅读 · 0 评论