例子
#include <iostream>
using namespace srd;
class test
{
public:
int a;
double b;
string c;
};
int main()
{
test t;
//第一种,c++提供的类成员指针
int test::*p = &test::a;
double test::*q = &test::b;
string test::*m = &test::c;
t.*p = 5;
t