?? l4_11.cpp
字號:
#include <iostream.h>
int max1(int x, int y);
double max2(double x, double y);
void main()
{
int a=10, b=20 ,c;
double x=200.3, y=400.6, z;
c = max1(a,b);
z = max2(x,y);
cout << c << " " << z << endl;
}
int max1(int x, int y)
{
if(x>y)
return x;
else
return y;
}
double max2(double x, double y)
{
if(x>y)
return x;
else
return y;
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -