又有一个问题……
用win-tc输出结果为-0.00000
# include <stdio.h>
int main (void)
{
long double x=155.32442534;
printf("%lf",x);
getch();
}
2011-11-03 21:42
2011-11-03 21:45
2011-11-03 21:49
2011-11-03 21:50
程序代码:# include <stdio.h>
int main (void)
{
double x=155.32442534;
printf("%f",x);
getchar();
return 0;
}
2011-11-03 21:51
2011-11-03 21:55
程序代码:
#include <stdio.h>
main()
{
double x=155.23485968;
printf("%lf",x);
getch();
}
同5楼,这样就行了
2011-11-04 00:09