error C2064: term does not evaluate to a function

来源:百度知道 编辑:UC知道 时间:2024/06/14 17:41:21
#include <stdio.h>
void main ()
{
int number (int x);
int y;
y=number(1);
printf("第一天摘桃%d个\n",y);
}
int number(int x)
{
int a,z;
if(a==10)
z=1;
else z=2(number(a+1)+1);
return z;
}
这个错在哪了啊?
高手帮忙。

error C2064: term does not evaluate to a function的意思是:编译器不能执行这个函数。可能你的函数写的不够恰当,编译器不能执行 你再想一下,这个函数到底要实现什么功能。