在循环双链表的p所指的结点之前插入s所指结点的操作是()。
A: p->prior->prior
B: p->prior->prior
C: s->prior->next=s
D: s->prior->prior=s
A: p->prior->prior
B: p->prior->prior
C: s->prior->next=s
D: s->prior->prior=s
举一反三
- 在循环双链表的p所指的结点之前插入s所指结点的操作是()。 A: p->prior->prior B: p->prior->prior C: s->prior->next=s D: s->prior->prior=s
- 在循环双链表的p所指结点后插入s所指结点的操作是( )。 A: s->prior=p; s->next=p->next; p->next=s; p->next->prior=s; B: p->next=s; p->next->prior=s; s->prior=p; s->next=p->next; C: p->next=s; s->prior=p; p->next->prior=s; s->next=p->next; D: s->prior=p; s->next=p->next; p->next->prior=s; p->next=s;
- 在一个双链表中,删除p所指节点(非首、尾节点)的操作是 。 A: p->;prior->;next=p->;next;p->;next->;prior=p->;prior; B: p->;prior=p->;prior->;prior;p->;prior->;prior=p; C: p->;next->;prior=p;p->;next=p->;next->;next; D: p->;next=p->;prior->;prior;p->;prior=p->;prior->;prior;
- 在循环双链表的P所指节点之后插入s所指节点的操作是( ) A: p->next=s; s->prior=p; p->next->prior=s; s->next=p->next; B: p->next=s; p->next->prior=s; s->prior=p; s->next=p->next; C: s->prior=p; s->next=p->next; p->next=s; p->next->prior=s; D: s->prior=p; s->next=p->next; p->next=s;p->next->prior=s;
- 在双向链表存储结构中,删除p所指的结点,相应语句为: A: p->;prior=p->;prior->;prior; p->;prior->;next=p; B: p->;next->;prior=p; p->;next=p->;next->;next; C: p->;prior->;next=p->;next; p->;next->;prior=p->;prior; D: p->;next=p->;prior->;prior; p->;prior=p->;next->;next;