T1.h
#include<iostream>
using namespace std;
class T1
{
public:
typedef void (T1::*ptrType)(int );
void show(int);
};
T1.cpp
#include"T1.h"
void T1::show(int m)
{
cout<<"is this "<<m<<" !"<<endl;
}
main.cpp
#include"T1.h"
void main()
{
T1::ptrType pm =0;
pm =&T1::show;
T1 *p;
(p->*pm)(5);
(p->*pm)(10);
}