从栈顶指针为top的链栈中删除一个结点,用x保存被删除结点的值,则执行()。
A:x=top;top=top->next;
B:x=top->data;
C:top=top->next;x=top->data;
D:x=top->data;top=top->next;
出自:计算机科学