二叉树的链式存储

lixiangrong
2024-01-29 / 0 评论 / 19 阅读 / 正在检测是否收录...

二叉树的链式存储

// 7.3.2 二叉树的链式存储
typedef char dataType; // 结点值的类型
typedef struct node
{
    dataType data; // 结点数据域
    struct node *lChild, *rChild; // 左、右孩子指针
    struct node *parent; //有时为了方便的找到双亲结点
}treeNode, *binaryTree;
0

评论 (0)

取消