if(p->rchild!=NULL)
{q[j]=p->rchild;j++;}
i++;
}
}
void Leafnum(BT *T)
{
if(T)
{
if(T->lchild==NULL&&T->rchild==NULL) count++;
Leafnum(T->lchild);
Leafnum(T->rchild);
}
}
void Nodenum(BT *T)
{
if(T)
{
count++;
Nodenum(T->lchild);
Nodenum(T->rchild);
}
}
int TreeDepth(BT *T)
{
int ldep,rdep;
if(T==NULL)
return 0;
else
{
ldep=TreeDepth(T->lchild);
rdep=TreeDepth(T->rchild);
if(ldep>rdep)
return ldep+1;
else
return rdep+1;
}
}
void ShowTree(BT *T)
{
BT *stack[TREEMAX],*p;
int level[TREEMAX][2],top,n,i,width=4; if(T!=NULL)
湘南学院经济与管理系 信息系统课程设计 实验报告设计...胡志鹏 指导教师评阅: 指导教师(签字) 二 O 一二...数据流、数据存储、加工处理和数据结构的数 据字典...
1个接 万方数据 第3期 赵明元,胡志鹏,杨江天:...对x(I’建立一阶线性微分方程模型 学删1)(f)_...44(10):24—26.4 结构改进及试验验证针对上述分析...
由剑桥大学选用线性 低密度聚乙烯 ( L LDPE) 挤出...相关的 M CF 换热器结构还有 : ( 1) 将多张 ...参考文献: [ 1] 胡志鹏 . 塑料薄膜软包装 发展...
由剑桥大学选用线性 低密度聚乙烯 ( L LDPE) 挤出...相关的 M CF 换热器结构还有 : ( 1) 将多张 ...参考文献: [ 1] 胡志鹏 . 塑料薄膜软包装 发展...
热门文档