【发布时间】:2011-09-09 18:39:20
【问题描述】:
我想在一个结构中访问一个结构,有人知道怎么做吗?
编辑:
typedef struct{
int a, b;
} struct_1;
typedef struct{
int c;
struct_1 exemple;
} struct_2;
struct_2 Table[100];
这里例如我想给 Table[0].exemple.a 赋值
谢谢。 编辑:哇,我真是个笨蛋.. 有时它只是我的打印打印了 100 次,而我只有 6 个条目,所以我只需要查看打印,谢谢
【问题讨论】:
-
Table[0].exemple.a = value;有什么遗漏吗?