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/12/23 10:03:32
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 去掉.