C++ 函数的递归调用

在调用一个函数的过程当中又出现直接或间接地调用该函数自己,称为函数的递归(recursive)调用。包含递归调用的函数称为递归函数。 好比:ios int test(int x) { int y; y = test(x); return(2*y); } 以上是一个直接调用的例子,递归调用还包括间接调用,好比:web int first(int x) { int b;
相关文章
相关标签/搜索