1)#include < iostream >
2)# include < math.h >
3)using namespace std;
4)double max(double x,doubley);
5)void main()
6){
7)double a,b,c;
8)cout << " input two numbers:\n";
9)cin>>a>>b;
10)c=max(a,b);
11)cout<< " the squart of max imum="<< sqrt(c);
12)}
13)double max(doublex,doubley)
14){
15)if(x>y)
16)returnx;
17)else
18)returny;
19)}
A、整型
B、單精度浮點(diǎn)型
C、雙精度浮點(diǎn)型
D、字符型
您可能感興趣的試卷
你可能感興趣的試題
1)#include < iostream >
2)# include < math.h >
3)using namespace std;
4)double max(double x,doubley);
5)void main()
6){
7)double a,b,c;
8)cout << " input two numbers:\n";
9)cin>>a>>b;
10)c=max(a,b);
11)cout<< " the squart of max imum="<< sqrt(c);
12)}
13)double max(doublex,doubley)
14){
15)if(x>y)
16)returnx;
17)else
18)returny;
19)}
A.8
B.8.0(小數(shù)位數(shù)由編譯器決定)
C.9
D.9.0(小數(shù)位數(shù)由編譯器決定)
1)#include < iostream >
2)# include < math.h >
3)using namespace std;
4)double max(double x,doubley);
5)void main()
6){
7)double a,b,c;
8)cout << " input two numbers:\n";
9)cin>>a>>b;
10)c=max(a,b);
11)cout<< " the squart of max imum="<< sqrt(c);
12)}
13)double max(doublex,doubley)
14){
15)if(x>y)
16)returnx;
17)else
18)returny;
19)}
A.#include
B.#include
C.using namespace std;
1)#include
2)#include
3)usingnamespacestd;
4)doublemax(doublex,doubley);
5)voidmain()
6){
7)double a,b,c;
8)cout<<"inputtwonumbers:\n";
9)cin>>a>>b;
10)c=max(a,b);
11)cout<<"thesquartofmaximum="<
13)doublemax(doublex,doubley)
14){
15)if(x>y)
16)returnx;
17)else
18)returny;
19)}
A、求c的絕對值
B、求c的平方
C、求c的開平方
D、將c進(jìn)行類型轉(zhuǎn)換
1)#include < iostream >
2)# include < math.h >
3)using namespace std;
4)double max(double x,doubley);
5)void main()
6){
7)double a,b,c;
8)cout << " input two numbers:\n";
9)cin>>a>>b;
10)c=max(a,b);
11)cout<< " the squart of max imum="<< sqrt(c);
12)}
13)double max(doublex,doubley)
14){
15)if(x>y)
16)returnx;
17)else
18)returny;
19)}
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

最新試題
在公有派生類的成員函數(shù)不能直接訪問基類中繼承來的某個成員,則該成員一定是基類中的()
對基類和派生類的關(guān)系描述中,錯誤的是()
請問交換機(jī)和路由器各自的實(shí)現(xiàn)原理是什么?分別在哪個層次上面實(shí)現(xiàn)的?
為什么析構(gòu)函數(shù)通常聲明為虛函數(shù),而構(gòu)造函數(shù)不能是虛函數(shù)?
一個父類寫了一個virtual函數(shù),如果子類覆蓋它的函數(shù)不加virtual,也能實(shí)現(xiàn)多態(tài)?
所謂數(shù)據(jù)封裝就是將一組數(shù)據(jù)和與這組數(shù)據(jù)有關(guān)操作組裝在一起,形成一個實(shí)體,這實(shí)體也就是()
局部變量能否和全局變量重名?
實(shí)時操作系統(tǒng)定義是什么?
下列不能作為類的成員的是()
存儲過程是什么?有什么用?有什么優(yōu)點(diǎn)?