有没有办法可以使用普通函数指针指向类实例成员函数?
例如
#include<stdio.h>
#include<stdlib.h>
int main(){
struct nodeout
{
int out;
struct nodein {int in; } node_in;
};
struct nodeout* p;
p = (struct nodeout*)malloc(sizeof(struct nodeout));
p->out = 10;
p->node_in.in = 5
printf("%d %d”, p->out, p->node_in.in);
}