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.1
C.2
D.3
您可能感興趣的試卷
你可能感興趣的試題
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行時,輸入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ù)由編譯器決定)
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、input two number:前面
B、input two number:后面
C、input two number:下一行首列
D、不確定
![](https://static.ppkao.com/ppmg/img/appqrcode.png)
最新試題
給兩個變量,如何找出一個帶環(huán)單鏈表中是什么地方出現(xiàn)環(huán)的?
何為抽象類?抽象類在程序中的作用?
一個父類寫了一個virtual函數(shù),如果子類覆蓋它的函數(shù)不加virtual,也能實(shí)現(xiàn)多態(tài)?
在IA32中一共有多少種辦法從用戶態(tài)跳到內(nèi)核態(tài)?
Windows消息調(diào)度機(jī)制是()
請問交換機(jī)和路由器各自的實(shí)現(xiàn)原理是什么?分別在哪個層次上面實(shí)現(xiàn)的?
如果只想讓程序有一個實(shí)例運(yùn)行,不能運(yùn)行兩個。像winamp一樣,只能開一個窗口,怎樣實(shí)現(xiàn)?
下面函數(shù)模板定義中不正確的是()
指針類型的作用?子類指針與父類指針強(qiáng)制轉(zhuǎn)換時要注意什么?
下列不能作為類的成員的是()