return 1; 5 else 6 return x * power(x, n-1); 7 } Code Fragment 5.8: Computing the power function using trivial recursion. if (n == = = 1 /** Computes the value ...
確定! 回上一頁