一个没有定义为函数的表达式被当做函数来调用啦。
例如::
int i, j;
char* p;
void func()
{
j = i(); // error, i is not a function
p(); // error, p doesn't point to a function
}
这个例子里i只不过是个整数,却被当做函数来用啦,因而导致了错误!
error C2064: term does not evaluate to a function
解决 error C2064 这种错误,关键是找到它所指向的错误行里面所有调用的函数名,他们中一定至少有一个是未被定义过的。
error C2064: term does not evaluate to a function!
今天这个错误让我痛苦了30分钟!
Vect是我定义的一个类,其中定义了成员变量th ,
看起来很简单吧?可是每次我compile的时候,就会出现错误提示:error C2064: term does not evaluate to a function! 而且这个错误指向serial_legendre(Legendre,cos(VV.th()));