C语言综合练习之4.2 函数
**** Hidden Message *****没有输出啊,#include <iostream>
using namespace std;
int f1(double a)
{return a*a;}
int f2(int x,int y)
{
double a,b;
a=f1(x);
b=f1(y);
return a+b;
}
void main()
{
double w;
w=f2(2.1,4.0);
cout<<w<<endl;
}答案:20 呵呵。。。。。。。。。。。 楼主辛苦了 来看看答案。。。。。
页:
[1]