#include <iostream> #include<vector> #include<algorithm> using namespace std; //习题11.1 找出直系亲属 struct TreeNode{ char data; TreeNode *leftchild; TreeNode *rightchild; TreeNode *father; TreeNode(int data):data(data),leftchild(NULL),rightchild(NULL),father(NULL){} ...