ptrmem4.c
来自「this is a gcc file, you can download it 」· C语言 代码 · 共 29 行
C
29 行
// Build don't run:template<class T,class T1>int connect_to_method(T* receiver, int (T1::*method)()) { return (receiver->*method)();}class Gtk_Container{public: int remove_callback() { return 1; } void remove_callback(int); int f();};int Gtk_Container::f() { return connect_to_method(this, &Gtk_Container::remove_callback);}int main(){ Gtk_Container gc; if (gc.f () != 1) return 1;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?