mirror of
https://github.com/CodePanda66/CSPostgraduate-408.git
synced 2023-05-21 21:49:33 +08:00
➕ add TreesqLink and tree Link
This commit is contained in:
34
DataStructure/DS_4_TreeAndBinaryTree/DS_4_6_TreeLink.cpp
Normal file
34
DataStructure/DS_4_TreeAndBinaryTree/DS_4_6_TreeLink.cpp
Normal file
@@ -0,0 +1,34 @@
|
||||
//
|
||||
// Created by Kim Yang on 2020/8/29.
|
||||
// Copyright (c) Kim Yang All rights reserved.
|
||||
//
|
||||
#include <stdio.h>
|
||||
//树——孩子兄弟表示法(链式存储)
|
||||
/**定义模块**/
|
||||
|
||||
typedef struct CSNode{
|
||||
int data; //数据域,数据类型不定,此处的int只是一个列子
|
||||
struct CSNode *firstChild,*nextsibiling;//第一个孩子和右兄弟指针
|
||||
}CSNode,*CSTree;
|
||||
|
||||
|
||||
/**定义模块**/
|
||||
|
||||
|
||||
/**实现模块**/
|
||||
//坐等填坑
|
||||
|
||||
/**实现模块**/
|
||||
|
||||
|
||||
/**测试模块**/
|
||||
|
||||
void testModule() {
|
||||
|
||||
}
|
||||
|
||||
/**测试模块**/
|
||||
int main() {
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user