0001 template <typename T> void BinNode<T>::attachRc(BNP<T> x) //接入右子树 0002 { rc = x; if (x) x->parent = this ; } //左子树的接入完全对称,请自行补充