我对c++编程比较陌生,我有一个任务是编写牛顿-拉夫森方法,但是我遇到了错误:
called object type 'double' is not a function or function pointer当我试图编译我的代码时,出现这个错误。我尝试了一些基本的改变来赋值指针,但我可能用了错误的方式,我的代码打印在下面,有人能解释我如何克服这个问题吗?
cell.textLabel.text = [self.brain enchantmentCellText:indexPath];
}Semantic issue
Called object type 'NSString *' is not a function or function pointer
第一个函数中的第8行:Have a error: Call object type 'ListNode *' is not a function orfunction pointerListNode* deleteDuplicatesII(ListNode* head) if (head == nullptrnext;