摘要: 只要把你的函数写好并把地址传过去就行,至于如何调用你的函数,那你不需要管,调用部分的代码不是你写。#include <iostream>using namespace std;typedef void (*CALLBACK)(int a,int b);class base{private:int m;int n;static CALLBACK func;public:void registercallback(CALLBACK fun,int k,int j);void callcallback();};CALLBACK base::func=NULL;void base::reg 阅读全文
posted @ 2012-01-10 19:47 rookieeeeee 阅读(131) 评论(0) 推荐(0) 编辑