1.结构体定义问题
typedef struct{
int a;
char b;
int b;
}test;
然后再程序中定义一个结构体变量:struct test iseq;
引用成员变量:iseq.a=1;
编译程序时候会出现:dereferencing pointer to incomplete type错误
解决方法:在结构体定义的时候struct 后面一定要先有一个名字(不知道是否正确,但是实验结果是对的),改为如下:
typedef struct _test{
int a;
char b;
int b;
}test;