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.the squart of max imum=sqrtC.
B.the squart of max imum=3.08221
C.the squart of max imum=3
D.the squart of max imum=9.0
您可能感興趣的試卷
你可能感興趣的試題
1)#include
2)using namespace std;
3)int main()
4){
5)int a,b,result;
6)cout<<"please input two numbers:\n";
7)cin>>a>>b;
8)result=3*a-2*b+1;
9)cout<<"resultis
10)}
A、第3行
B、第4行
C、第5行
D、第6行
1)#include
2)using namespace std;
3)int main()
4){
5)int a,b,result;
6)cout<<"please input two numbers:\n";
7)cin>>a>>b;
8)result=3*a-2*b+1;
9)cout<<"resultis
10)}
A、cout<;<;&rdquo;Iamastudent.\n”
B、";Iamastudent.\n&rdquo;
C、Iamastudent.
D、Iamastudent.\n
1)#include
2)using namespace std;
3)int main()
4){
5)int a,b,result;
6)cout<<"please input two numbers:\n";
7)cin>>a>>b;
8)result=3*a-2*b+1;
9)cout<<"resultis
10)}
A、Iamastudent.的前面
B、Iamastudent.的后面
C、Iamastudent.的下一行首列
D、不確定
1)#include
2)using namespace std;
3)int main()
4){
5)int a,b,result;
6)cout<<"please input two numbers:\n";
7)cin>>a>>b;
8)result=3*a-2*b+1;
9)cout<<"resultis
10)}
A、代表’\’和’n’兩個字符
B、回車,即回到當(dāng)前行的行首
C、回車換行,即回到下一行首列
D、制表符
1)#include
2)using namespace std;
3)int main()
4){
5)int a,b,result;
6)cout<<"please input two numbers:\n";
7)cin>>a>>b;
8)result=3*a-2*b+1;
9)cout<<"resultis
10)}
A、iostream
B、cmath
C、iomanip
![](https://static.ppkao.com/ppmg/img/appqrcode.png)
最新試題
指針類型的作用?子類指針與父類指針強制轉(zhuǎn)換時要注意什么?
在類中說明的成員可以使用關(guān)鍵字的是()
運算符重載的本質(zhì)是什么?有哪兩種實現(xiàn)方式?
實時操作系統(tǒng)定義是什么?
對基類和派生類的關(guān)系描述中,錯誤的是()
Windows消息調(diào)度機制是()
局部變量能否和全局變量重名?
關(guān)于對象概念的描述中,說法錯誤的是()
如果只想讓程序有一個實例運行,不能運行兩個。像winamp一樣,只能開一個窗口,怎樣實現(xiàn)?
一個父類寫了一個virtual函數(shù),如果子類覆蓋它的函數(shù)不加virtual,也能實現(xiàn)多態(tài)?