一道程序改错题目?
#include<iostream.h>constfloatPAI=3-14159265;floatsquare(floatr){returnPAI*r*r;}float...
#include<iostream.h>
const float PAI=3-14159265;
float square(float r)
{return PAI*r*r;}
float square(float high, float length=0.)
{return high*length;}
float(* fs)(float,float=0);
void main()
{ fs=□
cout<<"The circle's square is "<<fs(1.0)<<'\n';
} 展开
const float PAI=3-14159265;
float square(float r)
{return PAI*r*r;}
float square(float high, float length=0.)
{return high*length;}
float(* fs)(float,float=0);
void main()
{ fs=□
cout<<"The circle's square is "<<fs(1.0)<<'\n';
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询