我的帖子是书的代码。
void qsort(void *lineptr[], int left, int right, int (*comp)(void *, void *));
/*Why it can be without name of pointer "comp"? like this: */
void qsort(void *lineptr[], int left, int right, int (*)(void *, void *)); */
main(int argc, char *argv[])
{
int nlines;
int n
我试图取消存储在静态数组中的方法指针的引用,并从方法中调用它,但是我得到了以下错误:
error: 'chip8::Chip8::table[0]' cannot be used as a member pointer, since it is of type 'void (*)()'
(this->*table[0])();
^
下面是我的类声明(chip.hpp):
class Chip8{
private:
static void (*table[16])(); //function po