摘要:
阅读全文
posted @ 2022-10-04 15:34
Morning枫
阅读(19)
评论(0)
推荐(0)
摘要:
介绍:一个函数在函数体内又调用了本身,称之为递归调用 例子: ①当在函数main内调用test(4)时,执行判断if,由于4>2,执行test(n-1),此时n=4,则传值为test(3) ②继续执行判断if,由于3>2,执行test(n-1),此时n=3,则传值为test(2) ③继续执行判断if 阅读全文
posted @ 2022-10-04 14:33
Morning枫
阅读(250)
评论(0)
推荐(0)