【单选题】— You were late again, Peter. —Sorry, I ______ to be here on time, but the traffic on the roads _____ heavy.
C.
wanted; would have been
D.
had wanted; would have been
【单选题】Peter wasn’t late for the meeting he missed the ferry.
【单选题】顺序栈S中top为栈顶指针,指向栈顶元素所在的位置,elem为存放栈的数组,则元素e进栈操作的主要语句为( )
B.
s.elem[top+1]=e; s.top=s.top+1; s.top=s.top+1;
D.
s.top=s.top+1; s.elem[top+1]=e; s.elem[top]=e;
【单选题】Peter und Anna, wo habt ihr _____ Stühle?
【单选题】对于顺序栈S,其判满的条件是( )。其中顺序栈的存储结构描述为: typedef struct{ SElemType *base ; //栈底指针 SElemType *top; //栈顶指针 ,指向栈顶元素的下一存储位置 int stacksize }SqStack;
D.
S.top-S.base>=S.stacksize
【单选题】Peter und Anna, wo habt ihr _____ Stühle?
【单选题】顺序栈S中栈顶元素的访问形式是( )。其中顺序栈的存储结构描述为: typedef struct{ SElemType *base ; //栈底指针 SElemType *top; //栈顶指针 ,指向栈顶元素的下一存储位置 int stacksize }SqStack;