怎样用指针调用C++类中的函数?
C中的我会写,但C++中的不会写,请大伙帮忙
C中是这样写的
using namespace std;
void ExportedFunction()
{
cout<<"ExportedFunction() has be transfer"<<"\n";
}
int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
{
typedef void (instruction)();
instruction * * lpFun=new instruction *[256];
lpFun[0]=&ExportedFunction;
(*lpFun[0])();
return 0;
}
上面C的形式我会写,但C++中类的函数我该怎样用指针调用啊?谢谢指教