pow()函数自实现

题目:实现函数double power(double base, int exponent),求base的exponent次方。不得使用库函数同时不须要考虑大数问题。函数 其实这道题就是要实现pow这个库函数。你可不要自觉得这道题目简单,直接给出一个for循环了事。像下面这样:性能 double power(double base, int exponent) { double result =
相关文章
相关标签/搜索