• 2022-06-16
    已知带头结点的链栈top,则元素x对应的新结点s进栈操作的语句是()
    A: top->next=s;s->next=top->next;
    B: s->next=top->next;top->next=s;
    C: s->next=top;top=s;
    D: top=s;s->next=top;