C & C++ Programming - Function Pointer in a Class
typedef void (CFunctionPtr::*FunctionPtr)(int nCount);
class CFunctionPtr
{
private:
void Function(int Count);
int m_nCount;
};
void CFunctionPtr::Function(int nCount)
{
m_nCount = nCount;
cout << "Count = " << m_nCount << endl;
}