【发布时间】:2011-05-02 02:36:27
【问题描述】:
定义(Core.h):
static int (*foolink)(int*, char*, key*, key*);
也在 Core.cpp 中重新定义。此代码导致错误:
foolink = this->step;
错误:
Engine/Core.cpp:31: error: argument of type 'int (Core::)(int*, char*, key*, key*)' does not match 'int (*)(int*, char*, key*, key*)'
指针使用:
(*foolink)(NULL, NULL, NULL, NULL);
怎么了?请帮帮我!
【问题讨论】:
标签: c++ class function-pointers