#include <iostream>
using namespace std;
class A
{
public:
int a;
A(int x):a(x){}
};
int main()
{
A a(5);
int A::*p = &A::a;
int A::**pst = &p;
cout << a.*p << endl;
cout << a.**pst << endl;
cout << *(a.*pst) << endl; //error
getchar();
return 0;
}
posted on 2010-01-11 15:00
deercoder 阅读(165)
评论(0) 编辑 收藏 引用