填空题

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

【参考答案】

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

单项选择题
下面程序对一维坐标点类Point进行了运算符重载: #include <iostream> using namespace std; class Point public: Point(int val)x=val; Point& operator++( )x++;return*this; Point operator++(int)Point old=*this;++(*this);return old; int GetX( )eonst t return x; private: int x; ; int main( ) Point a(10); cout<<(++
A..GetX( ); <br> cout<<a++.GetX( ); <br> return 0; <br> <br> 编译和运行情况是A) 运行时输出1011
B.运行时输出1111
C.运行时输出1112
D.编译有错
单项选择题
有如下程序: #include <iostream> using namespaee std; class Point public: static int number; Point( )number++; ~Point( )number--; ; int Point::number=0; void main( ) Point*ptr; Point A,B; Point*ptr_point=new Point[3]; ptr=ptr_point; Point C; cout<<Point::number<<endl; delete[ ]ptr; 程序的输出结果是
A.3
B.4
C.6
D.7
相关试题
  • 空格
  • 下列程序的输出结果为: Ohject id=0 ...
  • public A
  • 补充完整下面的类定义: const double P...
  • 如下程序声明了一个使用两个通用数据类型的...