#include<stdio.h> #include<malloc.h> //2013-12-23 //乾卦 #define MAX 512 typedef struct Node { char data; struct Node *rchild; struct Node *lchild; }BTNode; //创建二叉树 void CreatBT(BTNode *&root,char *str) { int top=0; int j=0; BTNode *st[MAX]; BTNode *p=NULL; int flg=0; root=NULL; while(str[j]!='