/* struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) { } };*/ class Solution { public: //初始化一个前节点和一个头节点 TreeNode* pre = nullptr; TreeNode* head = nullptr; TreeNode* Convert(TreeNode* pRootOfTree) { ...