64,654
社区成员
发帖
与我相关
我的任务
分享
xx->yy->zz->uu
xx->yy->kk
定义 tmp = xx->yy;
tmp->kk;
tmp->zz->kk;
case 't':
{
///判断上边是否为空
if(ptop == nullptr)
linkWithTopNode(insertNode,first);
else
{
insertNode->ptop = new Top;
insertNode->pbottom = new Bottom;
Node * theTopPoint = insertNode->ptop->point;
///上面相互指向
insertNode->ptop->point = this->ptop->point;
insertNode->ptop->point->pbottom->point = insertNode;
insertNode->ptop->setIsOk(first);
insertNode->ptop->point->pbottom->setIsOk(first);
///下面相互指向
this->ptop->point = insertNode;
insertNode->pbottom->point = this;
this->ptop->setIsOk(second);
insertNode->pbottom->setIsOk(second);
}
break;
}