填空题

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

【参考答案】

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

单项选择题
如下程序的输出结果是 #include<iostream> #include<iomanip> using namespace std; class CSum int x,y; public: CSum(int x0,int y0):X(x0),y(y0) friend ostream& operator<<(ostream& os,const CSum& x
A.
os<<setw(5)<<xa.x+xa.y:
return os;

;
int main( )
CSum y(3,5);
cout<<setfill(’*’)<<8;
cout<<y;
return 0;
A) 88
B.****88
C.****8****8
D.8****8
单项选择题
有如下程序: #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]
相关试题
  • C++语言中的多态性分为编译时的多态性和...
  • 有如下程序: #include<iostream> usi...
  • 若将一个二元运算符重载为类的成员函数,其...
  • 如下类定义中包含了构造函数和复制构造函数...
  • 有如下程序: #include<iostream> usi...