1. #include <stdlib.h>
2. #include <stdio.h>
3. struct tree /* 樹的結構宣告 */
4. {
5. int data; /* 節點資料 */
6. struct tree *left; /* 指向左子樹的指標 */
7. struct tree *right; /* 指向右子樹的指標 */
8. };
9. typedef struct tree treenode; /* 樹的結構新型態 */
10.typedef struct tree *btree; /* 宣告樹節點指標型態 */
/*