编译器找不出的问题,麻烦高手指点一下~
#include <iostream>#include <cmath>
using namespace std;
double area(double radius);
double volumn(double radius);
const double PI=3.14159;
int main()
{
double radius, area, volumn;
cout << "Please enter radius for both:" << radius << endl;
cin >> radius;
area = area(radius);
volumn = volumn(radius);
cout << "The area is " << area << endl
<< "The volumn is " << volumn << endl;
return 0;
}
double area(double radius)
{
return(PI * pow(radius,2));
}
double volumn(double radius)
{
return((4.0/3.0) * PI * pow(radius,3));
}