printf("%d", power(2,3));答案为0
能不说明白一点.
把你的帖子完整的贴出来!
不是没有,你想象成double--->int,这个是不可以的.
#include "stdio.h"#include "math.h"main(){ int a;
a=pow(3,2);
printf("%d",a); getch();}你试下这是不是你想要的呀?