本文介绍了未声明的枚举错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,我在包含之后声明了这样的错误''LETTERS'' undeclared (first use in this function).
LETTERS
:
Hello, I get this error ''LETTERS'' undeclared (first use in this function).
LETTERS
in declared after the includes like this:
enum LETTERS{
A = 0,B = 1,C = 2,D = 3,E = 4
}
然后在主要的空白中,我得到那个烦人的错误:
then in the main void I get that annoying error:
int main(void) {
int Word[] = {LETTERS.A,LETTERS.C,LETTERS.E};
}
}
如何摆脱这个错误?
注意:这发生在AVR Studio 5
How can I get rid of this error?
Note:This happens in AVR Studio 5
推荐答案
LETTERS::A
int Word[] = {A,C,E};
这篇关于未声明的枚举错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!