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、1個
B、2個
C、3個
D、4個
您可能感興趣的試卷
你可能感興趣的試題
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
![](https://static.ppkao.com/ppmg/img/appqrcode.png)
最新試題
類ClassB從ClassA派生,那么ClassA*a=newClassB(…);試問該表達是否合法?為什么?
內聯(lián)函數的優(yōu)缺點?通常在什么情況下使用?
對基類和派生類的關系描述中,錯誤的是()
類中的靜態(tài)成員與類的數據成員有什么區(qū)別?
請問交換機和路由器各自的實現原理是什么?分別在哪個層次上面實現的?
實時操作系統(tǒng)的特征是什么?
如何引用一個已經定義過的全局變量?
何為抽象類?抽象類在程序中的作用?
一個函數功能不太復雜,但要求被頻繁調用,則應把它定義為()
多態(tài)類中的虛函數表是Compile-Time,還是Run-Time時建立的?