“警告:空声明中无用的存储类说明符"指导 [英] "warning: useless storage class specifier in empty declaration" in struct
本文介绍了“警告:空声明中无用的存储类说明符"指导的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
typedef struct item {
char *text;
int count;
struct item *next;
};
所以我有这个结构和上面定义的节点,但我得到了下面的错误,我无法弄清楚什么是错的.
So I have this struct with nodes defined as above, but Im getting the error below and Im not able to figure out whats wrong.
警告:空声明中无用的存储类说明符};
warning: useless storage class specifier in empty declaration };
推荐答案
我不确定,但试试这样:
I'm not sure, but try like that :
typedef struct item {
char *text;
int count;
struct item *next;
}item;
这篇关于“警告:空声明中无用的存储类说明符"指导的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文