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.#include
B.#include
C.using namespace std;
您可能感興趣的試卷
你可能感興趣的試題
1)#include
2)#include
3)usingnamespacestd;
4)doublemax(doublex,doubley);
5)voidmain()
6){
7)double a,b,c;
8)cout<<"inputtwonumbers:\n";
9)cin>>a>>b;
10)c=max(a,b);
11)cout<<"thesquartofmaximum="<
13)doublemax(doublex,doubley)
14){
15)if(x>y)
16)returnx;
17)else
18)returny;
19)}
A、求c的絕對值
B、求c的平方
C、求c的開平方
D、將c進行類型轉換
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、不確定
![](https://static.ppkao.com/ppmg/img/appqrcode.png)
最新試題
下列不能作為類的成員的是()
關于this指針使用說法正確的是()
深拷貝和淺拷貝的區(qū)別?
請問交換機和路由器各自的實現(xiàn)原理是什么?分別在哪個層次上面實現(xiàn)的?
指針類型的作用?子類指針與父類指針強制轉換時要注意什么?
存儲過程是什么?有什么用?有什么優(yōu)點?
在類中說明的成員可以使用關鍵字的是()
字符指針、浮點數(shù)指針、以及函數(shù)指針這三種類型的變量哪個占用的內存最大?為什么?
運算符重載的本質是什么?有哪兩種實現(xiàn)方式?
為什么析構函數(shù)通常聲明為虛函數(shù),而構造函數(shù)不能是虛函數(shù)?