#include <stdio.h> #include <stdlib.h> //创建二叉树 typedef struct TreeNode { struct TreeNode* left; struct TreeNode* right; char val; }TNode; //前序生成二叉树 TNode* CreatTree(char *s,int *i) { if(s[*i]=='#') { (*i)++; return NULL; } TNode* root=(TNode...