pow(x,y);//其作用是计算x的y次方。x、y及函数值都是double型 例:我要计算2的5次方源代码如下:#include"stdio.h"#include"math.h"main(){long total;int x = 2, y = 5;total = pow(x,y); /*调用pow函数*/printf("%ld",total);getch();} 转载于:https://www.cnblogs.com/cobblestone-Rong/p/8882328.html