遇见YY

导航

 

2020年7月28日

摘要: #include <iostream> #define IOFFSETOF(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)#define ICONTAINEROF(ptr, type, member) ((type*)(((char*)((type*)pt 阅读全文
posted @ 2020-07-28 17:17 一骑红尘妃子笑! 阅读(261) 评论(0) 推荐(0)
 
摘要: #include <iostream> #define IOFFSETOF(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) using namespace std; int main(){ struct Demo{ char sex; int id; }; 阅读全文
posted @ 2020-07-28 16:27 一骑红尘妃子笑! 阅读(424) 评论(0) 推荐(0)