想要获取中序遍历时某一节点的直接后继,
template<typename T>
BinNodePosi(T) BinNode<T>::succ(){
BinNodePosi(T) s = this;
if (rChild) {
s = rChild;
while (HasLChild(s)) s = s->lChild;
} else{
while (IsRChild(s)) s = s->parent;
s = s->parent;
}
return s;
}