按照先序顺序输入二叉树,空的位置用#表示,比如下图的就用ABD##E##C#F##表示 最后的显示效果为用括号表示的二叉树,“,”前为左孩子,后面为右孩子。 下面上我拙劣的代码(* ̄︶ ̄) #include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct Tree { struct Tree *lchild; char data; struct Tree *rchild; } BiTree; //创建二叉树 BiTree *CreatTree