Void InThreading(BiThrTree p){
if(p){
InThreading(p
If(!p
if(!pre
pre=p;
InThreading)p
}
}//InThreading
(三)樹和森林
#define MAX_Tree_SiZE
typedef struct PTNode{
TelemType data;
Int parent;
}PTNode;
typedef struct{
PTNode nodes[MAXTREE_SIZE];
Intr
}Ptree;
//樹的孩子鏈存儲表示
typedef struct CTNode{
int child;
struct CTNode *next;
}*Childptr;
typedef struct{
TelemType data;
ChildPtr firstchild;
}CtBox;
typedef struct{
CTBox nodes[MAX
Int n
}Ctree;
返回《數據結構》考研復習精編
[
From:http://tw.wingwit.com/Article/program/sjjg/201311/23657.html