填空题

某二叉树中度为2的结点有18个,则该二叉树中有______个叶子结点。

【参考答案】

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

填空题
在程序设计阶段应该采取______和逐步求精的方法,把一个模块的功能逐步分解,细化为一系列具体的步骤,继而用某种程序设计语言写成程序。
单项选择题
下列程序的输出结果是( )。 #include<iostream> using namespace std; class TestClass{ static int i; public: TestClass(){i++;} ~TestClass(){i--;} static int getVal(){retum i;} }; int TestClass∷i=0; void fun(){TestClass ob2;cout<<ob2.getVal();} int main(){ TestClass obi; fun(); TestClass*ob3=new TestClass;cout<<ob3->getVal(); delete ob3;cout<<TestClass∷getVal(); retum 0; }
A.111
B.121
C.211
D.221
相关试题
  • 在声明派生类时,如果不显式地给出继承方式...
  • 已知下列程序的输出结果是42,请将横线处...
  • 有下列程序:#include<iostream>using ...
  • 在类的对象被创建时,______函数会被...
  • 请将下列类定义补充完整。class Base{pub...