#include<iostream>
using namespace std;
class Dialog {
public:
int a;
int color;
void Close() {}
};
int main()
{
// 멤버 변수의 포인터 만들기.
int Dialog::*p = &Dialog::color;
printf("%d\n", p); // 0
Dialog dlg;
dlg.*p = 10; // dlg.color = 10 으로 컴파일.
printf("%d\n", dlg.color); // 0
}
I2luY2x1ZGU8aW9zdHJlYW0+Cgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKY2xhc3MgRGlhbG9nIHsKcHVibGljOiAKICAgICBpbnQgYTsKICAgICBpbnQgY29sb3I7IAogICAgIHZvaWQgQ2xvc2UoKSB7fSAKfTsgCgppbnQgbWFpbigpIAp7IAogICAgLy8g66mk67KEIOuzgOyImOydmCDtj6zsnbjthLAg66eM65Ok6riwLiAKICAgIGludCBEaWFsb2c6OipwID0gJkRpYWxvZzo6Y29sb3I7CQogICAgcHJpbnRmKCIlZFxuIiwgcCk7IC8vIDAgCiAgICBEaWFsb2cgZGxnOyAKICAgIGRsZy4qcCA9IDEwOyAvLyBkbGcuY29sb3IgPSAxMCDsnLzroZwg7Lu07YyM7J28LiAKICAgIHByaW50ZigiJWRcbiIsIGRsZy5jb2xvcik7IC8vIDAgCn0K