单项选择题
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)}
执行完第14行后,命令提示符窗口中光标的位置在:()
A.input two number:前面
B.input two number:后面
C.input two number:下一行首列
D.不确定
相关考题
-
单项选择题
执行完第14行后,命令提示符窗口中输出的结果是:()
A.inputtwonumbers:\n
B.inputtwonumbers:
C.cout<<” input two numbers:\n”
D.”input two numbers:\n” -
单项选择题
执行第15行时,若输入“8空格9回车”,则执行完第18行后,命令提示符窗口中新输出的结果是:()
A.the squart of max imum=sqrtC.
B.the squart of max imum=3.08221
C.the squart of max imum=3
D.the squart of max imum=9.0 -
单项选择题
第17行中的函数sqrt()在哪个头文件中定义:()
A.iostream
B.cmath
C.fstream
D.usingnamespacestd;
