数据结构实验5
D:
source
data_structure
deque
tree.h
Go to the documentation of this file.
1
//
2
// Created by emon100 on 2019/11/28 0028.
3
//
4
5
#ifndef INC_6_69_TREE_H
6
#define INC_6_69_TREE_H
7
8
#include <cstdlib>
9
#include <cstdio>
10
11
12
typedef
struct
tree
{
13
struct
tree
*
lchild
, *
rchild
;
14
char
data
;
15
}
tree
;
16
17
tree
*
t_malloc
(
char
a) ;
18
19
void
init_tree
(
tree
**pointer);
20
21
void
trav
(
tree
*root) ;
22
23
void
trav_correct
(
tree
*root,
int
depth) ;
24
25
26
#endif //INC_6_69_TREE_H
tree::data
char data
Definition:
tree.h:14
trav
void trav(tree *root)
Definition:
tree.cpp:28
t_malloc
tree * t_malloc(char a)
Definition:
tree.cpp:6
init_tree
void init_tree(tree **pointer)
Definition:
tree.cpp:14
tree::lchild
struct tree * lchild
Definition:
tree.h:13
tree
struct tree tree
trav_correct
void trav_correct(tree *root, int depth)
Definition:
tree.cpp:37
tree::rchild
struct tree * rchild
Definition:
tree.h:13
tree
Definition:
tree.h:12
Generated by
1.8.16