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、2,5
B、2.0,5.0(小數(shù)位數(shù)由編譯器決定)
C、不確定,不確定
D、x,y變量不存在
您可能感興趣的試卷
你可能感興趣的試題
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)}
若執(zhí)行第9行時(shí),輸入89后按回車,則執(zhí)行完第19行后,max函數(shù)的返回值是:()
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.0
B.隨機(jī)值
C.8
D.8.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、變量定義
B、函數(shù)調(diào)用
C、函數(shù)聲明
D、函數(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、2
B、2.0(小數(shù)位數(shù)由編譯器決定)
C、3
D、3.0(小數(shù)位數(shù)由編譯器決定)
![](https://static.ppkao.com/ppmg/img/appqrcode.png)
最新試題
局部變量能否和全局變量重名?
Ethternet鏈接到Internet用到以下哪個(gè)協(xié)議?()
為什么子類對(duì)象可以給父類對(duì)象賦值,而父類對(duì)象不能給子類對(duì)象賦值?
對(duì)基類和派生類的關(guān)系描述中,錯(cuò)誤的是()
給兩個(gè)變量,如何找出一個(gè)帶環(huán)單鏈表中是什么地方出現(xiàn)環(huán)的?
存儲(chǔ)過(guò)程是什么?有什么用?有什么優(yōu)點(diǎn)?
Windows消息調(diào)度機(jī)制是()
如何引用一個(gè)已經(jīng)定義過(guò)的全局變量?
關(guān)于對(duì)象概念的描述中,說(shuō)法錯(cuò)誤的是()
請(qǐng)你詳細(xì)地解釋一下IP協(xié)議的定義,在哪個(gè)層上面?主要有什么作用?TCP與UDP呢?