class A{public: int getI() { return 100; }}; ...A * a = 0;a->getI();
class A{public: int getI() { return 100; }};A * a = 0;a->getI();
int getI(struct A * this) { return 100; }//и вызовstruct A * a = 0;getI(a);