#include <iostream>using namespace std;void add (int i, int j) {cout << "Add" &NBSP;<<&NBSP;I&NBSP;+&NBSP;J&NBSP;<<&NBSP;ENDL;} Class func{public:void jian (int i, int j) {cout << "Jian" < < i - j << endl;}}; Int main () {void (*p) (Int, int) = add;p (2, 3);//add5 (*p) (3, 4);//add7 (************ p) (3, 4);//add7 (*&p) (3, 7);//add10cout << (void*) p << << (void*) (*p) << endl; //00ca1334 00ca1334cout << typeid (P). Name () << endl; //void (__cdecl*) (int, int) Cout<< typeid (*p). Name () << endl; //void __cdecl (Int, int) cout << typeid (******************p). Name () << endl; //void __cdecl (int, int) cout << " " << typeid (&p). Name () << endl; //void (__cdecl**) (Int, int) Cout<< typeid (*&p). Name () << endl;//void (__cdecl*) (int, int) cout << "#####################################" << endl;auto fun1 = &func::jian;cout << typeid (FUN1). Name ( ) << endl;//void (__thiscall func::*) (int, int) void (func::* Func2) (Int, int) = &func::jian;//void (__thiscall func::*) (Int, int) Cout << typeid ( FUNC2). Name () << endl;func funcc; (FUNCC.*FUNC2) (14, 12); Cin.get (); return 0;}
C + + high energy pointers