[求助]float转化为int出错
printf("%d", power(2,3));答案为0
printf("%d", power(2,3));答案为0
2006-09-21 10:05
printf("%d", power(2,3));答案为0
能不说明白一点.

2006-09-21 10:56
2006-09-21 11:32

2006-09-21 12:28

2006-09-21 16:29
2006-09-21 22:40
2006-09-21 22:46
2006-09-22 09:20
#include "stdio.h"
#include "math.h"
main()
{ int a;
a=pow(3,2);
printf("%d",a);
getch();
}
你试下这是不是你想要的呀?

2006-09-23 01:25
2006-09-25 14:33