数据结构与算法-实验7-二叉树基础

 1 #define Tree_Level tree_Level(Root, 0)
 2 
 3 struct DataType
 4 {
 5     char data[9];
 6 };
 7 struct BinaryTree
 8 {
 9     DataType  Data;
10     BinaryTree* Lchild;
11     BinaryTree* Rchild;
12     int x;
13     int y;
14 };
15 
16 BinaryTree *Root=NULL;
17 
18 BinaryTree* Grow()
19 {
20     BinaryTree* Leaf;
21     Leaf = new BinaryTree;
22     Leaf->Lchild = NULL;
23     Leaf->Rchild = NULL;
24     strcpy_s(Leaf->Data.data,"