A: s-> prior =p ; p->n e x t=s ; p-> next -> prior =s ; s->n e x t=p-> next s -> next = p -> next ;
B: p -> next -> prior = s ; p -> next = s ; s \rightarrow> prior = p
C: p -> next = s ; s \rightarrow> prior = p ; s -> next = p -> next ; p -> next -> prior = s ;
D: p -> next -> prior = s ; s -> next = p -> next ; s \rightarrow prior = p ; p -> next = s
举一反三
- 完成在双循环链表结点p之后插入s的操作是()A.()p->next=s();()s()->()prior=p;()p()->()next()->()prior=s();()s()->()next=p()->()next;()B.()p()->()next()->()prior=s;()p()->()next=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()->()prior=s();()p()->()next=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所指结点之后插入s所指结点的操作是() A: P—>next=s; B: p—>next=s;s—>prior=p;p—>next—>prior=s;p—>next—>prior=s;s—>prior=p;s—>next=p—>next;s—>next=p—>next C: s—>prior=p; D: s—>prior=p;s—>next=p—>next;s—>next=p—>next;p—>next=s;p—>next—>prior=s;p—>next—>prior=s;p—>next=s;
- 在循环双链表的p结点之后插入s结点的操作是______。 A: p→next=s;p→next→prior=s;S→prior=p;S→next=p→next; B: s→next=p;s→next=p→next;p→next=s;p→next→prior=s; 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所指节点之后插入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;
内容
- 0
在循环双链表的p所指的结点之前插入s所指结点的操作是 ( ) A: p->;prior = s;s->;next = p;p->;prior->;next = s;s->;prior = p->;prior; B: p->;prior = s;p->;prior->;next = s;s->;next = p;s->;prior = p->;prior; C: s->;next = p;s->;prior = p->;prior;p->;prior = s;p->;prior->;next = s; D: s->;next = p;s->;prior = p->;prior;p->;prior->;next = s;p->;prior = s;
- 1
设指针变量p指向双向链表中结点A,指针变量s指向被插入的结点X,则在结点A的后面插入结点X的操作序列为()。 A: p->next=s;s->prior=p;p->next->prior=s;s->next=p->next; B: s->prior=p;s->next=p->next;p->next=s;p->next->prior=s; C: p->next=s;p->next->prior=s;s->prior=p;s->next=p->next; D: s->prior=p;s->next=p->next;p->next->prior=s;p->next=s;
- 2
在循环双链表的p所指向结点之后插入结点s的操作步骤是( )。 A: p->next=s; s->prior=p; p->next->prior=s; s->next=p->prior; B: p->next=s; p->prior->next=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->prior=s; p->next =s;
- 3
在循环双链表的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;
- 4
在循环双链表的 p 所指的结点之前插入 s 所指结点的操作是( ) A: p->prior = s ; s->next = p ; p->prior->next = s ; s->prior = p->prior B: p->prior = s ; p->prior->next = s ; s->next = p ; s->prior = p->prior C: s->next = p ; s->prior = p->prior ; p->prior = s ; p->prior->next = s D: s->next = p ; s->prior = p->prior ; p->prior->next = s ; p->prior = s