- 链接地址:https://blog.csdn.net/gongkongrs/article/details/21400573
- 链接标题:用define封装结构体简化代码_用define简化结构体-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:2231
文章浏览阅读1k次。#include #include struct A{ int a; char *p; };struct B{ int b; char *p; };#define TYPE(type) \struct { \ struct type *content; \ }#define MY(type) \ struct type int main(){ TYPE(A) x; x.content = (str_用define简化结构体
版权声明:本文发布于特牛网址导航 内容均来源于互联网 如有侵权联系删除
标签:用define简化结构体