struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) { } }; */ class Solution { public: string Ser(TreeNode *root){ if(root == nullptr) return "@"; // 前序遍历 return to_st...