black

CPP考试

登录

单项选择题

1)#include < iostream >
2)#include < cmath >
3)using namespace std;
4)double max(double x,doubley)
5){
6)if(x>y)
7)return x;
8)else
9)return y;
10)}
11)int main()
12){
13)doublea,b,c;
14)cout <<" input two numbers:\n";
15)cin >> a >> b;
16)c=max(a,b);
17)cout <<" the squart of max imum="<< sqrt( c );
18)}

第13行中变量a、b、c的类型是:()

A.整型
B.单精度浮点型
C.双精度浮点型
D.字符型

相关考题

单项选择题 第13行中定义了几个变量:()

单项选择题 执行第15行时,若输入“2空格3回车”,则变量a的值是:()

单项选择题 执行完第14行后,命令提示符窗口中光标的位置在:()

All Rights Reserved 版权所有©易学考试网(yxkao.com)

备案号:湘ICP备2022003000号-3