解决 error: called object ‘xxx‘ is not a function or function pointer

An error was reported when the code was compiled:
error: called object 'xxx' is not a function or function pointer|

Cause: The mathematical expression is wrong or some mathematical functions are used without importing the header file containing it

Solution:
1. Check whether the mathematical expressions in the code are written incorrectly. The common mistakes are omitting the multiplication sign '*' or division sign '/' in the expression and mistakenly writing it as '÷', and the parentheses in the array do not match , such as: arry[i] is mistakenly written as arry(i) or arry[i][j] is written as arry[i,j], etc.
2. If library functions such as absolute value and trigonometric functions are used, check whether the header file <math.h> is added

Guess you like

Origin blog.csdn.net/qq_41320433/article/details/120400929