求大神解释一下.
#include<stdio.h>#include<stdlib.h> 编译的时候没错,但无法运行,求高手详细解释下;
int main(void)
{void age(int n);
int t;
t=age(5);
printf("the fith age is:%d\n",t);
system("pause");
return 0;
}
void age(int n)
{
int i=5;
int c;
if(n==1)
c=10;
else
c=age(n-1)+2;
return c;
}









你定义的函数 age 为 viod 类型,也就是无返回值
如果你说你的程序看自谭书,我奉劝你赶紧换书

能有什么建议,换书呗。。。。。