填空题

二叉树的遍历分为三种,它们是前序遍历、______遍历和后序遍历。

【参考答案】

中序
<上一题 目录 下一题>
热门 试题

单项选择题
有如下程序: #include<iostream> using namespace std; class TlestClass { int n; public: TestClass(int k):n(k){} int get(){return n;} int get()const{return n+1;} }; int main() { TestClass p(5); colast TestClass q(6); cout<<p.get()<<q.get(); return 0; } 执行后的输出结果是( )。
A.55
B.57
C.75
D.77
单项选择题
下列程序执行后,屏幕的输出是( )。 #include<iostream> using namespace std; void swap(int x,int y) { int temp=x; x=y; y=temp; cout<< x= <<x<< ,y= <<y<<end1; } int main() { int x=3,y=2; swap(x,y); cout<< x= <<x<< ,y= <<y<<end1; return 0; }
A.x=3,y=2 x=3,y=2
B.x=2,y=3 x=3,y=2
C.x=2,y=3 x=2,y=3
D.x=3,y=2 x=2,y=3
相关试题
  • 以下函数模板min的功能是返回数组a中最小元...
  • 执行下列语句序列:im x=1,&y=x;cou...
  • 设p是指向一个类动态对象的指针变量,则执...
  • 有如下程序:#include<iostream>using ...
  • 在下面程序的横线处填上适当的语句,使程序...