小程序帮该一下
#include <stdio.h>float fmax(float x,float y)
{return x>y? x:y;}
void main()
{float max;
max=fmax(3.5,2.6);
printf("max=%f\n",max);
}运行后,是3,为什么不是3.5?要是生成3.5程序该怎么改?
2008-05-09 08:28
2008-05-09 08:32
2008-05-09 09:24
2008-05-09 10:17
2008-05-09 13:30