Pointer to member function ก็คือ pointer ที่ชี้ไปยัง member function (or member variable) ของ class ที่ต้องการครับ
เป็น advance feature ของ C++ ส่วนใหญ่ไม่ค่อยได้ใช้, เท่าที่เข้าใจเอาแก้ปัญหาตอนอ้างถึง member ของ Base class ตอน inherit มา ทั้งที่เป็น single inheritance หรือ multiple inheritance
ตัวอย่างการใช้งานครับ
[hide=2]CPlayer.h
[code]
#ifndef CPLAYER_H
#define CPLAYER_H
/*
* Simple


Reply With Quote
