解析一下这个小程序
double Cylinder(double r,double h);
void main()
{
double radius,height;
cout<<"请输入圆柱体的半径和高:\n";
cin>>radius,height;
double volume=Cylinder(radius,height);
cout<<"该圆柱体的体积为:\n"<<volume<<endl;
}
double Cylinder(double r,double h){
return r*r*3.14*h;
}
我不明的是这个程序中没有一个语句说明函数Cylineder与输入的radios和height有什么关系,为什么输入的radius与height分别对应Cylineder中的r和h