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、不確定
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”
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.變量不存在
D.隨機(jī)值
![](https://static.ppkao.com/ppmg/img/appqrcode.png)
最新試題
存儲(chǔ)過(guò)程是什么?有什么用?有什么優(yōu)點(diǎn)?
所謂數(shù)據(jù)封裝就是將一組數(shù)據(jù)和與這組數(shù)據(jù)有關(guān)操作組裝在一起,形成一個(gè)實(shí)體,這實(shí)體也就是()
進(jìn)程和線(xiàn)程的差別。
多態(tài)類(lèi)中的虛函數(shù)表是Compile-Time,還是Run-Time時(shí)建立的?
如果只想讓程序有一個(gè)實(shí)例運(yùn)行,不能運(yùn)行兩個(gè)。像winamp一樣,只能開(kāi)一個(gè)窗口,怎樣實(shí)現(xiàn)?
指針類(lèi)型的作用?子類(lèi)指針與父類(lèi)指針強(qiáng)制轉(zhuǎn)換時(shí)要注意什么?
下面函數(shù)模板定義中不正確的是()
深拷貝和淺拷貝的區(qū)別?
局部變量能否和全局變量重名?
一個(gè)父類(lèi)寫(xiě)了一個(gè)virtual函數(shù),如果子類(lèi)覆蓋它的函數(shù)不加virtual,也能實(shí)現(xiàn)多態(tài)?