[求助]请问这个错误的提示是啥意思,怎么解决,我用的是TurboC2.0
scanf:floating point formats not linkedAbnormal program termination
源程序如下:
main()
{
char a[]="-12345";
char b[]="12345678";
char c[]="-12345.6789";
char ch1[80],ch2[80];
int x,n1=32;
long y,n2=-1234567;
double z;
x=atoi(a);
y=atol(b);
z=atof(c);
itoa(n1,ch1,8);
ltoa(n2,ch2,10);
printf("x=%d\ny=%ld\nz=%f\n",x,y,z);
printf("ch1=%s\nch2=%s\n",ch1,ch2);
}
[此贴子已经被作者于2007-9-1 13:10:52编辑过]