模拟实现pow(x,y)库函数

pow函数.算法 头文件:#include <math.h> pow() 函数用来求 x 的 y 次幂(次方),其原型为:  double pow(double x, double y);函数 看到这个题,咱们首先能想到是计算量这么大的题,确定要使用递归.code 实现:递归 #define _CRT_SECURE_NO_WARNINGS 1 #include <stdio.h> #include
相关文章
相关标签/搜索