填空题
设二叉树如右:对该二叉树进行后序遍历的结果为______。
【参考答案】
EDBGHFCA。
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
有如下程序: #inClude using nameSpace std; Class A public: A(inti=0):r1(i) void plint()cout<<‘E’<<r1<<‘-’; void print()constcout<<‘C’<<r1*r1<<‘-’; void print(int X)cout<<‘P’<<r1*r1*r1<<‘-’; prlvate: intrl; ; intmain() Aal; constA a2(4); a1.print(2); a2.print(); returh0; 运行时的输出结果是()。
A.P8-E4
B.P8-C16-
C.P0-E4-
D.P0-C16-
点击查看答案&解析
单项选择题
有如下程序: #include using name space std; classB public: B(int xx):x(xx)++count;x+=10; virtual void show()const cout<<count<<’_’<<x<<endl; protected: static int count; private: intx; ; class D:publicB public: D(int xx,int yy):B(xx),y(yy)++count;y+=100; virtual void show()const cout<<count<<’_’<<y<endl; pnvate: inty; ; int B::count=0; intmain() B*ptr=new D(10,20); ptr->show(); delete ptr; return 0; 运行时的输出结果是()。
A.1_120
B.2_120
C.1_20
D.2_20
点击查看答案&解析
相关试题
下面的函数定义是某函数模板能够生成的函数...
请将下面的程序补充完整,使得程序输出“飘...
请将下面的类Date的定义补充完整,使得由语...
在有理数类Rational中重载插入运算符<<,...
假定Xcs是一个类,该类中一个成员函数的原...