#include <iostream>
using namespace std;
struct Example {
void (Example::*foo)();
void foo2() {}
};
int main() {
// your code goes here
Example *a = new Example();
a->foo = &Example::foo2;
(a->*(a->foo))();
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwpzdHJ1Y3QgRXhhbXBsZSB7CiAgICAgICB2b2lkIChFeGFtcGxlOjoqZm9vKSgpOwogICAgICAgCiAgICAgICB2b2lkIGZvbzIoKSB7fQogICAgfTsKICAgIAppbnQgbWFpbigpIHsKCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCiAgICBFeGFtcGxlICphID0gbmV3IEV4YW1wbGUoKTsKICAgIGEtPmZvbyA9ICZFeGFtcGxlOjpmb28yOwogICAgCiAgICAoYS0+KihhLT5mb28pKSgpOwoJcmV0dXJuIDA7Cn0=