首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C语言 >

[C语言]enum 又小白了 [Warning] declaration does not declare anything解决思路

2013-06-25 
[C语言]enum 又小白了 [Warning] declaration does not declare anythingtypedef struct {int error_code

[C语言]enum 又小白了 [Warning] declaration does not declare anything

typedef struct {
int error_code;
enum {
EC_FAULT,
EC_EXCEED
};
} MyError;


报了一个warning 
[Warning] declaration does not declare anything

上网搜了,enum 应该这样写

enum eventType { singleTouch } type;

本人一直用C++,最近转纯C,发现好多跟C++不一样的,求大神给解释一下,这什么意思


[解决办法]
warning而已嘛!

热点排行