标签:alc 递归 double class ref cal return ems problem
https://pintia.cn/problem-sets/12/problems/353
1 double calc_pow(double x, int n) 2 { 3 double ret; 4 5 if (n == 0) 6 { 7 ret = 1; 8 } 9 else 10 { 11 ret = x * calc_pow(x, n - 1); 12 } 13 14 return ret; 15 }
标签:alc 递归 double class ref cal return ems problem
原文地址:https://www.cnblogs.com/2018jason/p/12233365.html