#include
#include
main()
{
float x,y;
if(x>=0)
y=pow(x,3)+3*x;
else
y=x*x+x;
printf("%f\n",y);
}
#include
#include
main()
{
float x,y;
printf("请输入x的值:\n");
scanf("%f",x);
if(x>=0)
y=pow(x,3)+3*x;
else
y=x*x+x;
printf("%f\n",y);
}
这样呢,为什么有.....该内存不能为written的提示?
|
|