所謂 遞迴(recursion) , 就是一個副程式執行到半途, 還沒有完全結束時, 又呼叫自己。 下面的例子使用遞迴的方式, ... C 版*/ int factorial(int n) { return n<=1 ?
確定! 回上一頁