刚学c++,请教简单的问题
#include <iostream>using namespace std;
void main()
{
double calArea(double radius);
double r=3.0;
double area;
area=calArea(r);
cout<<"area :"<<area<<endl;
}
double calArea(double radius)
{
return 3.14*radius*radius;
}
//想将这改为内联函数,如何修改??