1)#include < iostream >
2)#include < cmath >
3)using namespace std;
4)double max(double x,doubley)
5){
6)if(x>y)
7)return x;
8)else
9)return y;
10)}
11)int main()
12){
13)doublea,b,c;
14)cout <<" input two numbers:\n";
15)cin >> a >> b;
16)c=max(a,b);
17)cout <<" the squart of max imum="<< sqrt( c );
18)}
A.5
B.5.0000000000000000
C.隨機值
D.不存在
您可能感興趣的試卷
你可能感興趣的試題
1)#include < iostream >
2)#include < cmath >
3)using namespace std;
4)double max(double x,doubley)
5){
6)if(x>y)
7)return x;
8)else
9)return y;
10)}
11)int main()
12){
13)doublea,b,c;
14)cout <<" input two numbers:\n";
15)cin >> a >> b;
16)c=max(a,b);
17)cout <<" the squart of max imum="<< sqrt( c );
18)}
A.8
B.8.0000000000000000
C.9
D.9.0000000000000000
1)#include < iostream >
2)#include < cmath >
3)using namespace std;
4)double max(double x,doubley)
5){
6)if(x>y)
7)return x;
8)else
9)return y;
10)}
11)int main()
12){
13)doublea,b,c;
14)cout <<" input two numbers:\n";
15)cin >> a >> b;
16)c=max(a,b);
17)cout <<" the squart of max imum="<< sqrt( c );
18)}
執(zhí)行第15行時,若輸入“8空格9回車”,則第4行中,y的值是:()
A.0
B.隨機值
C.9
D.9.0000000000000000
1)#include < iostream >
2)#include < cmath >
3)using namespace std;
4)double max(double x,doubley)
5){
6)if(x>y)
7)return x;
8)else
9)return y;
10)}
11)int main()
12){
13)doublea,b,c;
14)cout <<" input two numbers:\n";
15)cin >> a >> b;
16)c=max(a,b);
17)cout <<" the squart of max imum="<< sqrt( c );
18)}
A.x不分配,y不分配
B.x分配,y不分配
C.x不分配,y分配
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)}
A、2,5
B、2.0,5.0(小數位數由編譯器決定)
C、不確定,不確定
D、x,y變量不存在
![](https://static.ppkao.com/ppmg/img/appqrcode.png)
最新試題
實時操作系統(tǒng)定義是什么?
何為抽象類?抽象類在程序中的作用?
實時操作系統(tǒng)的特征是什么?
所謂數據封裝就是將一組數據和與這組數據有關操作組裝在一起,形成一個實體,這實體也就是()
進程和線程的差別。
對基類和派生類的關系描述中,錯誤的是()
運算符重載的本質是什么?有哪兩種實現方式?
在IA32中一共有多少種辦法從用戶態(tài)跳到內核態(tài)?
字符指針、浮點數指針、以及函數指針這三種類型的變量哪個占用的內存最大?為什么?
下列不能作為類的成員的是()