摘要: #include#include#includetypedef struct node{ int data; struct node*lchild,*rchild;}tnode,*tree;tree creat(){ int x; tree t; scanf("%d",... 阅读全文
posted @ 2015-04-25 16:16 Thereisnospon 阅读(242) 评论(0) 推荐(0) 编辑
摘要: #include#include#includetypedef struct node{ int data; struct node*lchild,*rchild;}tnode,*tree;tree creat(){ int x; tree t; scanf("%d",... 阅读全文
posted @ 2015-04-25 16:15 Thereisnospon 阅读(290) 评论(0) 推荐(0) 编辑
摘要: #include#include#includetypedef struct node{ int data; struct node*lchild,*rchild;}tnode,*tree;tree creat(){ int x; tree t; scanf("%d",... 阅读全文
posted @ 2015-04-25 16:15 Thereisnospon 阅读(363) 评论(0) 推荐(0) 编辑
摘要: #include#include#includetypedef struct node{ int data; struct node*lchild,*rchild;}tnode,*tree;tree creat(){ int x; tree t; scanf("%d",... 阅读全文
posted @ 2015-04-25 16:13 Thereisnospon 阅读(494) 评论(0) 推荐(0) 编辑
摘要: #include#include#includetypedef struct node{ int data; int mark; struct node*lchild,*rchild,*parent;}tnode,*tree;tree creat(){ int x; t... 阅读全文
posted @ 2015-04-25 16:13 Thereisnospon 阅读(142) 评论(0) 推荐(0) 编辑
摘要: #include#include#includetypedef struct node{ int data,tag; struct node*lchild,*rchild;}tnode,*tree;tree creat(){ int x; tree t; scanf("... 阅读全文
posted @ 2015-04-25 16:13 Thereisnospon 阅读(153) 评论(0) 推荐(0) 编辑
摘要: #include#include#includetypedef struct node{ int data; struct node*lchild,*rchild;}tnode,*tree;tree creat(){ int x; tree t; scanf("%d",... 阅读全文
posted @ 2015-04-25 16:10 Thereisnospon 阅读(138) 评论(0) 推荐(0) 编辑
摘要: #include#include#includetypedef struct node{ int data; struct node*lchild,*rchild;}tnode,*tree;tree creat(){ int x; tree t; scanf("%d",... 阅读全文
posted @ 2015-04-25 16:10 Thereisnospon 阅读(189) 评论(0) 推荐(0) 编辑
摘要: #includeint L[6+1]={0,2,4,0,6,0,0};int R[6+1]={0,3,5,0,0,0,0};int T[6+1];int n=6;void TransTo(){ int i; for(i=1;i<=n;i++) { T[L[i]]=i;... 阅读全文
posted @ 2015-04-25 16:09 Thereisnospon 阅读(123) 评论(0) 推荐(0) 编辑
摘要: #includeint L[6+1]={0,2,4,0,6,0,0};int R[6+1]={0,3,5,0,0,0,6};int n=6;int IfSon(int u,int v){ if(u&&v){ if(L[v]==u||R[v]==u) retur... 阅读全文
posted @ 2015-04-25 16:09 Thereisnospon 阅读(159) 评论(0) 推荐(0) 编辑