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.隨機值
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、不確定
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 numbers:\n
B.input two numbers:
C.cout<<”input two numbers:\n”
D.”please input two numbers:\n”
最新試題
一個函數(shù)功能不太復(fù)雜,但要求被頻繁調(diào)用,則應(yīng)把它定義為()
進(jìn)程和線程的差別。
Windows消息調(diào)度機制是()
對基類和派生類的關(guān)系描述中,錯誤的是()
多態(tài)類中的虛函數(shù)表是Compile-Time,還是Run-Time時建立的?
關(guān)于對象概念的描述中,說法錯誤的是()
指針類型的作用?子類指針與父類指針強制轉(zhuǎn)換時要注意什么?
為什么析構(gòu)函數(shù)通常聲明為虛函數(shù),而構(gòu)造函數(shù)不能是虛函數(shù)?
Ethternet鏈接到Internet用到以下哪個協(xié)議?()
運算符重載的本質(zhì)是什么?有哪兩種實現(xiàn)方式?