尝试分配函数指针时出现左值操作数问题。我不知道问题到底出在哪里,但我会给你所有与该特定问题有关的代码。
double *func(double); //initialization for a pointer to a function that both returns a double and requires a double
func = &xsquaredsinx; //trying to make the pointer point at a function that both returns a double and requires a double
func = &halfcircle;//others that are the same
func = &testfunction;
任何帮助都会很棒。