填空题

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

【参考答案】

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

单项选择题
有如下的程序; #include <ctring> #include <iostream> using namespace std; class MyString public: MyString(const char *s); ~MyString() delete []data; protected: unsigned len; char *data; ; MyString:: MyString (const char *s) len=strlen(s); data=new char[len+1]; strcpy(data,s); int main() MyString a( C++ Programing ); MyString b(
A.;
return 0;

在运行上面的程序时出错,
单项选择题
有如下程序: #include <iostream> using namespace std; class Stack public: Stack(unsigned n= 10):size(n) rep_=ew int[size]; top=0; Stack(Stack& s):size(s.size) rep_=new int[size]; for(int i=0;i<size;i++) rep_[i]=s.rep_[i]; top=s.top; ~Stack() delete []rep_; void push(int
A.rep_[top]=a; top++;
&n
相关试题
  • 在下面函数的横线处填上适当的内容使该函数...
  • 以下函数模板max 的功能是返回数组a中最大...
  • Staff类含有血型数据成员ID,两个Staff 对...
  • 下面程序的执行结果是 【15】 。 #in...
  • 在下面程序的横线处填上适当的内容,使程序...