#include <iostream> #include <ratio> using namespace std; struct TreeNode { int data; TreeNode* leftchild; TreeNode* rightchild; TreeNode(int x):data(x),leftchild(NULL),rightchild(NULL){} }; TreeNode* Insert(TreeNode* root,int x,int father) { if(root==NULL) { ...