函数的递归调用-C++教程谭浩强

函数的递归调用在调用一个函数的过程中直接或间接地调用函数本身,称为函数的递归调用。 int f(int x) { int y,z ; ..... z=f(y); .... return (2*z); } int f1(int x) { int y,z ; ..... z=f2(y); .... return (2*z); } int f2(int t) { int a, c ; ..... c=f1(a); .... return (3+c); }
ppt 文件大小:8.81MB