性質
性質
(
(
(
//
#define MAN_TREE_SIZE
Typedef TElemType SqBiTree[MAX_TREE_SIZE];
SqBiTree
//
Typedef struct BiTNode{
TelemType data;
struct BiTNode *lchild
}BiTNode
Status PreOrderTraverse(BiTree T
{
if(t){
if(visit(T
if(PreOrderTraverse(T
if(PreOrderTraverse(T
return ERROR;
}else return ok;
}//PreOrderTraverse
[
From:http://tw.wingwit.com/Article/program/sjjg/201311/23654.html