特牛网址导航

用define封装结构体简化代码_用define简化结构体-CSDN博客

网友收藏
文章浏览阅读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简化结构体