嗯...就是贴个板子 #include <bits/stdc++.h> using namespace std; struct node{ int num; node *p, *l, *r; }; node *root, *null; int n, xx; string str; void p_inorder(node *x){ // 中序遍历 if(x == null) return ; p_inorder(x -> l); printf(" %d", x -> num); p_inorder(x -> r); re...