mirror of
https://github.com/CodePanda66/CSPostgraduate-408.git
synced 2023-05-21 21:49:33 +08:00
🌱 add ThreadBiTree
This commit is contained in:
38
DataStructure/DS_4_TreeAndBinaryTree/DS_4_2_BiTreeF.cpp
Normal file
38
DataStructure/DS_4_TreeAndBinaryTree/DS_4_2_BiTreeF.cpp
Normal file
@@ -0,0 +1,38 @@
|
||||
//
|
||||
// Created by Kim Yang on 2020/8/23.
|
||||
// Copyright (c) Kim Yang All rights reserved.
|
||||
//
|
||||
#include <stdio.h>
|
||||
|
||||
//三叉链表——方便找父节点
|
||||
//带有一个指针指向父节点
|
||||
/**定义模块**/
|
||||
struct ElemType {
|
||||
int value;
|
||||
};
|
||||
|
||||
typedef struct BiTNode {
|
||||
ElemType data;//数据域
|
||||
struct BiTNode *lchild, *rchild;//左右孩子指针
|
||||
struct BiTNode *parent;//指向父节点的指针
|
||||
} BiTNode, *BiTree;
|
||||
/**定义模块**/
|
||||
|
||||
|
||||
/**实现模块**/
|
||||
//坐等填坑
|
||||
|
||||
/**实现模块**/
|
||||
|
||||
|
||||
/**测试模块**/
|
||||
|
||||
void testModule() {
|
||||
|
||||
}
|
||||
|
||||
/**测试模块**/
|
||||
int main() {
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user