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”

最新試題
指針類(lèi)型的作用?子類(lèi)指針與父類(lèi)指針強(qiáng)制轉(zhuǎn)換時(shí)要注意什么?
對(duì)基類(lèi)和派生類(lèi)的關(guān)系描述中,錯(cuò)誤的是()
關(guān)于對(duì)象概念的描述中,說(shuō)法錯(cuò)誤的是()
Windows消息調(diào)度機(jī)制是()
為什么析構(gòu)函數(shù)通常聲明為虛函數(shù),而構(gòu)造函數(shù)不能是虛函數(shù)?