![]() |
#2
yuccn2013-06-14 12:29
|

class Base
{
public:
virtual void f() { cout << "Base::f()" << endl; }
};
void main()
{
Base *b = new Base;
typedef void (*Fun)();
Fun funf = (Fun)(*(int*)*(int*)b);
}
{
public:
virtual void f() { cout << "Base::f()" << endl; }
};
void main()
{
Base *b = new Base;
typedef void (*Fun)();
Fun funf = (Fun)(*(int*)*(int*)b);
}
求前辈剖析
Fun funf = (Fun)(*(int*)*(int*)b);