int main () { Dummy a; Dummy* b = &a; if ( b->isitme(a) ) cout << "yes, &a is b\n"; return 0; }
int main1() { Dummy a; Dummy* b = &a; if ( b->isitme(a) ) cout << "yes, it's me, silly\n"; return 0; }
int main() { Dummy dummy, dumbo; Dummy* pdummy = &dummy; printf("%s\n", pdummy->isitme(dummy) ? "true" : "false"); printf("%s\n", pdummy->isitme(dumbo) ? "true" : "false"); }