📄 example1-18.cpp
字号:
#include <iostream.h>
#include <math.h>
int example(int i);
int example(int i,int j);
double example(double x,double y);
void main()
{
int temp1=1;
int temp2=2;
int temp3=3;
double temp4=5.9;
double temp5=6.7;
cout<<"The value of example(int):="<<example(temp1)<<endl;
cout<<"The value of example(int,int):="<<example(temp2,temp3)<<endl;
cout<<"The value of example(float,float):="<<example(temp4,temp5)<<endl;
}
int example(int i)
{
return(2*i);
}
int example(int j,int k)
{
return(j*k);
}
double example(double x,double y)
{
return(x*y);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -