你好!这样的错误是因为你把格式混了你在定义时int a,b,c,d;定义的c,d是整形变量而在下面scanf("%f,%f",&c,&d);c,d是浮点型变量所以才导致出现"scanf:floating point formats not linkedAbnormal progaam termination !? 所以应该把c,d定义为float型(浮点型)变量参考程序如下:main(){ int a,b;float c,d; scanf("%d,%d",&a,&b); scanf("%f,%f",&c,&d);
printf("%d,%d,
|