成员函数指针的问题
  昊叔    2007-10-24 11:27:14
 昊叔    2007-10-24 11:27:14   class test
{
	typedef void (test::*pMemF)(int);
	void f(int x){cout << x << "f()" << endl;};
	void g(int x){cout << x << "g()" << endl;};
	void print(pMemF pf,int x)
	{
		pf(x);//这儿出错 
	};
	void doit()
	{
		print(&test::f,1);
		print(&test::g,2);
	}
};
error C2064: term does not evaluate to a function taking 1 arguments