填空题
C++语言提供的基本控制结构可以分为3种类型:顺序结构、【 】和循环结构。
【参考答案】
选择结构
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
以下程序的执行结果为【 】。#include<iostream>using namespace std;class base{public:virtual void who( ){cout < < base class < <end1;};class derivel:public base{public:void who( ){cout < < derivel class < <end1;};} class derive2:public base{public:void who( ){cout< < derive2 class < <end1;}};void main( ){base obj1,* p;derivel obi2;derive2 obj3;p=&obj1;p->who( );p=&obj2;p->who( );p=&obj3;p->who( );}
点击查看答案&解析
单项选择题
下列程序的输出结果是( )。#include iostream using namespace std;int Max(int a,int b){if(a > b)elsereturn a;elseretum b;}void main( ){int m,n;m=10,n=5;int max=Max(m,n);cout < < max < < end1;}
A.单项索引文件
B.复合索引文件
C.结构化复合索引文件
D.非结构化复合索引文件
点击查看答案&解析
相关试题
件维护活动包括以下几类:改正性维护、适应...
常用的黑箱测试有等价分类法、【 】、因果...
若串s= MathTypes ,则其子串的数目是【...
在C++语言中,访问一个对象的成员所用的...
C++语言的参数传递机制包括传值和传地址...