this pointer and member function address
问题 I'm trying to get the address of a member function, but I don't know how. I would appreciate if somebody could tell me what I'm doing wrong. As you can see in my example below, neither (long)&g nor (long)&this->g work and I can't figure out the correct syntax: /* Create a class that (redundantly) performs data member selection and a member function call using the this keyword (which refers to the address of the current object). */ #include<iostream> using namespace std; #define PR(STR) cout <