单项选择题

设栈S的初始状态为空。元素a,b,c,d,e,f依次通过栈S,若出栈的顺序为b,d, c,f,e,a,则栈S的容量至少应该为

A.3
B.4
C.5
D.6
<上一题 目录 下一题>
热门 试题

单项选择题
在模块化程序设计中,按功能划分模块的原则是
A.各模块的功能尽量单一,且各模块之间的联系尽量的少
B.各模块的功能尽量单一,且各模块之间的联系尽量紧密
C.各模块应包括尽量多的功能
D.各模块应包括尽量多的输入输出操作
单项选择题
有如下类的定义。空格处的语句是class MyClass ______ int x, y;public: MyClass(int a=0, int b=0) x=a; y=b; static void change() x-=10; y-=10; ;
A.static
B.const
C.private
D.不需要填入内容
相关试题
  • 有如下程序:#include <iostream>using...
  • 有以下程序#include <iostream>using ...
  • 有如下程序#include <iostream>using ...
  • 有以下程序:#include <iostream>#inc...
  • 若有以下程序:# include <iostream>u...