递归函数写法

void function(type& result/*结果写在参数里*/type var/*存储需要用到的值*/type& var1/*结果*/)

原文地址:https://www.cnblogs.com/mdumpling/p/8295076.html