摘要:        
什么样的问题可以用递归? 其实很多问题都可以用递归解决,例如数列的求和: #include using namespace std; template T recrusive_sum(T a[], int idx) { if(idx == 0) // 退出条件 return a[0]; else return a[idx] + recr...    阅读全文
        posted @ 2008-06-29 18:57
MainTao
阅读(589)
评论(0)
推荐(0)
 
                     
                    
                 
                    
                 
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号