Class T { public: char* data;//只讨论偏移,异常暂时不考虑 }; //定义一个指向成员的指针 char* T::*p_data=&T::data; //p_data就能作为偏移量
64,649
社区成员
250,477
社区内容
加载中
试试用AI创作助手写篇文章吧