填空题

在深度为7的满二叉树中,度为2的结点个数为______。

【参考答案】

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

单项选择题
有如下程序: #include<iostream> using namespace std; class Base protected:int i; public:int j; ; class Derived:public Base int m; public:int n; ; int main( ) Derived d; d.i=0; [1] d.j=0; [2] d.n1=0; [3] d.n=0; [4] return 0; 其中主函数中有两个赋值语句有错,这两个错误的赋值语句是
A.[1]和[2]
B.[1]和[3]
C.[2]和[3]
D.[2]和[4]
单项选择题
如下程序的输出是 #include<iostream> using namespace std; class Base public: Base( )cout<< BB ;f( ); void f( )cout<< Bf ; ; class Derived:public Base public: Derived( )eout<< DD ; void f( )cout<< Df ; ; int main( )Derived d;return 0;
A.BBBff)D
B.BBDfDDDf
C.DD
D.DDBBBf
相关试题
  • C++语言中的多态性分为编译时的多态性和...
  • 有如下程序: #include<iostream> usi...
  • 若将一个二元运算符重载为类的成员函数,其...
  • 用来派生新类的类称为______,而派生...
  • 有如下程序: #include<iostream> usi...