double pow(double x,double y) C语言#include#includeint main(){double pn[5],t[5],p0=10000;t[0]=double pow(double 1.50,double 2.0);pn[0]=p0*t[0];t[1]=double pow(double 4.10,double 8.0);pn[1]=p0*t[1];t[2]=double pow(double 4.30,double 4.0);pn[2]=p0*t[
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/05 17:01:19
![double pow(double x,double y) C语言#include#includeint main(){double pn[5],t[5],p0=10000;t[0]=double pow(double 1.50,double 2.0);pn[0]=p0*t[0];t[1]=double pow(double 4.10,double 8.0);pn[1]=p0*t[1];t[2]=double pow(double 4.30,double 4.0);pn[2]=p0*t[](/uploads/image/z/1207609-25-9.jpg?t=double+pow%28double+x%2Cdouble+y%29+C%E8%AF%AD%E8%A8%80%23include%23includeint+main%28%29%7Bdouble+pn%5B5%5D%2Ct%5B5%5D%2Cp0%3D10000%3Bt%5B0%5D%3Ddouble+pow%28double+1.50%2Cdouble+2.0%29%3Bpn%5B0%5D%3Dp0%2At%5B0%5D%3Bt%5B1%5D%3Ddouble+pow%28double+4.10%2Cdouble+8.0%29%3Bpn%5B1%5D%3Dp0%2At%5B1%5D%3Bt%5B2%5D%3Ddouble+pow%28double+4.30%2Cdouble+4.0%29%3Bpn%5B2%5D%3Dp0%2At%5B)
double pow(double x,double y) C语言#include#includeint main(){double pn[5],t[5],p0=10000;t[0]=double pow(double 1.50,double 2.0);pn[0]=p0*t[0];t[1]=double pow(double 4.10,double 8.0);pn[1]=p0*t[1];t[2]=double pow(double 4.30,double 4.0);pn[2]=p0*t[
double pow(double x,double y) C语言
#include
#include
int main()
{
double pn[5],t[5],p0=10000;
t[0]=double pow(double 1.50,double 2.0);
pn[0]=p0*t[0];
t[1]=double pow(double 4.10,double 8.0);
pn[1]=p0*t[1];
t[2]=double pow(double 4.30,double 4.0);
pn[2]=p0*t[2];
t[3]=double pow(double 4.50,double 2.0);
pn[3]=p0*t[3];
t[4]=double pow(double 5.40,double 1.0);
pn[4]=p0*t[4];
printf("pn[0]:%f,pn[1]:%f,pn[2]:%f,pn[3]:%f,pn[4]:%f",pn[0],pn[1],pn[2],pn[3],pn[4]);
return 0;
}
>------ 已启动生成:项目:30,配置:Debug Win32 ------
1> 30.c
1>d:\我的文档\visual studio 2010\projects\30\30\30.c(6):error C2059:语法错误:“类型”
1>d:\我的文档\visual studio 2010\projects\30\30\30.c(8):error C2059:语法错误:“类型”
1>d:\我的文档\visual studio 2010\projects\30\30\30.c(10):error C2059:语法错误:“类型”
1>d:\我的文档\visual studio 2010\projects\30\30\30.c(12):error C2059:语法错误:“类型”
1>d:\我的文档\visual studio 2010\projects\30\30\30.c(14):error C2059:语法错误:“类型”
double pow(double x,double y) C语言#include#includeint main(){double pn[5],t[5],p0=10000;t[0]=double pow(double 1.50,double 2.0);pn[0]=p0*t[0];t[1]=double pow(double 4.10,double 8.0);pn[1]=p0*t[1];t[2]=double pow(double 4.30,double 4.0);pn[2]=p0*t[
把pow()的参数列表中 的double 去掉.