不管我输入怎样的程序,编译要出现这样的问题,请大家帮我看看这是怎么回事?
#include<stdio.h>void main()
{
int c,s;
float p,w,d,f;
scanf("%f%f%d",&p,&w,&s);
if(s>=3000)
{
d=0.15;
printf("freight=%15.4f\n",f=p*w*s*(1-d));
}
if(s>=2000&&s<3000)
{
d=0.1;
printf("freight=%15.4f\n",f=P*w*s*(1-d));
}
if(s>=1000&&s<2000)
{
d=0.08;
printf("freight=%15.4f\n",f=p*w*s*(1-d));
}
if(s>=500&&s<1000)
{
d=0.05;
printf("freight=%15.4\n",f=p*w*s*(1-d));
}
if(s>=250&&s<500)
{
d=0.02;
printf("freight=%15.4\n",f=p*w*s*(1-d));
}
if(s<250)
printf("freight=%15.4\n",f=p*w*s*(1-d));
}
老是出现这样的错误--------------Configuration: h - Win32 Debug--------------------
Compiling...
Error spawning cl.exe
h.obj - 1 error(s), 0 warning(s)