填空题

任何非空树中有且仅有一个结点没有前驱结点,该结点就是树的 【2】 。

【参考答案】

根节点
<上一题 目录 下一题>
热门 试题

单项选择题
有以下程序: #include <iostream> #include <cstdlib> using namespace std; int main() { int arraysize; int *array; cout<< Please input the size of the array: ; cin>>arraySiZe; array=new int[arraysize]; if(array==NULL) { cout<< allocate Error n ; exit(1); } for(int i=0;i<arraysize;i++) array[i]=i*i; int j; cout<< which element you want to check: ; cin>>j; cout<<array[j]<<end1; return 0; } 执行程序输入:10<空格>5,则输出结果为( )。
A.allocate Error
B.1
C.0
D.25
填空题
在面向对象方法中,信息隐蔽是通过对象的 【1】 来实现的。
相关试题
  • 下面程序是一个堆栈的类模板,在横线处填上...
  • 实现编译时的多态性的机制称为 【10】 ...
  • 下面程序的输出结果是 【13】 。#incl...
  • 有以下程序:#include <fstream>#incl...
  • 若有以下程序:#include <iostream>usi...