【发布时间】:2019-03-26 21:29:31
【问题描述】:
基本上,由于老师的要求,我在此 CLion 应用程序上运行此代码。
我在 .c 文件中定义了我的“Estado”结构,如下所示:
struct estado{
char modo;
char jogador;
char matriz[8][8];
int pretas;
int brancas;
};
在我的 .h 文件中有这个:
typedef struct estado* Estado;
在我尝试访问的 main.c 文件中:
printf("%s",novo -> matriz[1]);
它说:“错误:取消引用指向不完整类型‘struct estado’的指针”
你能帮帮我吗?
【问题讨论】:
标签: c