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)}
A.1個(gè)
B.2個(gè)
C.3個(gè)
D.4個(gè)
您可能感興趣的試卷
你可能感興趣的試題
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)}
A.2
B.2.0000000000000000
C.3
D.3.0000000000000000
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)}
A.input two number:前面
B.input two number:后面
C.input two number:下一行首列
D.不確定
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)}
A.inputtwonumbers:\n
B.inputtwonumbers:
C.cout<<” input two numbers:\n”
D.”input two numbers:\n”
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)}
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
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)}
A.iostream
B.cmath
C.fstream
D.usingnamespacestd;
最新試題
實(shí)時(shí)操作系統(tǒng)定義是什么?
關(guān)于this指針使用說法正確的是()
Ethternet鏈接到Internet用到以下哪個(gè)協(xié)議?()
何為抽象類?抽象類在程序中的作用?
為什么析構(gòu)函數(shù)通常聲明為虛函數(shù),而構(gòu)造函數(shù)不能是虛函數(shù)?
類ClassB從ClassA派生,那么ClassA*a=newClassB(…);試問該表達(dá)是否合法?為什么?
為什么子類對(duì)象可以給父類對(duì)象賦值,而父類對(duì)象不能給子類對(duì)象賦值?
內(nèi)聯(lián)函數(shù)的優(yōu)缺點(diǎn)?通常在什么情況下使用?
運(yùn)算符重載的本質(zhì)是什么?有哪兩種實(shí)現(xiàn)方式?
下面函數(shù)模板定義中不正確的是()