填空题

个队列的初始状态为空。现将元素A,B,C,D,E,F,5,4,3,2,1依次入队,然后再依次退队,则元素退队的顺序为()。

【参考答案】

ABCDE54321
<上一题 目录 下一题>
热门 试题

单项选择题
有如下程序: #include using namespace std; Class B{ public: B(int xx):x(xx) {++cout; x+=10;} virtual void show() const {cout< protected: static int count; private: int x; }; class D:public B{ public: D(int xx,int yy):B(xx),y(yy) {++count; y+=100;} virtual void show() const {cout< private: int y; }; int B::count=0; int main(){ B *ptr=new D(10,20); ptr->show(); delete ptr; return 0; } 运行时的输出结果是()

A.1_120
B.2_120
C.1_20
D.2_20

单项选择题
有如下程序 #include using namespace std; Class Base{ public: Base(int x=0):valB(x) {cout< ~Base() {cout< private: int valB; }; class Derived:public Base{ public: Derived(int x=0,int y=0):Base(x),valD(y){cout< ~Derived() {cout< private: int valD; }; int main(){ Derived obj12(2,3); retuen 0; } 运行时的输出结果是()

A.2332
B.2323
C.3232
D.3223

相关试题
  • 下面的函数定义是某函数模板能够生成的函数...
  • 请将下面的类Date的定义补充完整,使得由语...
  • 有如下的函数定义: int Xfun(int x)...
  • 1()
  • 2()