这个小小的C程序是哪里错了呢?输入1,2后返回0?!
#include <stdio.h>double min1 (double, double);
int main (void)
{
double a, b, min;
printf ("Please input two double count :\n");
scanf ("%f,%f", &a, &b);
min = min1 (a,b);
printf ("%f is more small\n", min);
return 1;
}
double min1 (double a, double b)
{
double t;
t = (a < b? a : b);
return t;
}
看看哪里错了?谢谢!
[ 本帖最后由 宣_仲达 于 2009-8-11 22:06 编辑 ]