1.问题描述:

2.解题想法:

3.最终代码:

#include<iostream>
using namespace std;
int main()
{
extern double Area (double);
double r;
cin>>r;
cout<<Area(r)<<endl;
return 0;
}
#define area.h
#define pai 3.14
double Area(double);
#endif
#include"area.h"
extern double Area(double t)
{
return pai*t*t;
}

4.测试样例:

04-30 05:16