C++ 友元函数的函数指针
成员函数的指针 讲友元之前先讲普通的成员函数的函数指针 class Std_interface { public: virtual void suspend() = 0; }; // define the pointer of function typedef void (Std_interface::* Pstd_mem) () void f(Std_interface* p) { Pstd_mem s = &Std_interface::suspend; // call d
下载地址
用户评论