This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center
8年前关闭。
我头上有这个
struct str_list_element_struct
{
    char* string;
    struct str_list_element_struct* next;
};
typedef struct str_list_element_scruct str_list_element;
typedef str_list_element* str_list;

当我试图
str_list.c:21:错误:“sizeof”对不完整类型“str_list_element”的应用无效
我的字体怎么不完整?

最佳答案

您在typedef中将“str_list_element_struct”拼写为“str_list_element_scruct”。

关于c - 将'sizeof'无效地应用于不完整的类型,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/7395359/

10-12 16:02