Home > Back-end >  Doubt, enumerated type variable how to assign? Great god solve!!!!!
Doubt, enumerated type variable how to assign? Great god solve!!!!!

Time:01-25

Beginner c, when learn enumeration of this chapter, an example in the book, when it comes to give enumerated type variable assignment, I on the compiler to compile the example, but hint cannot be the integer to the enumeration type variables (compilation is in English, translation is probably), namely tomorrow this variable to add 1 operation,
So this is the plus 1 no operation, or add 1 format is not correct, how to change?

CodePudding user response:

Can't, that is equivalent to the definition of a # define,

CodePudding user response:

Ok, so,

CodePudding user response:

Reference: https://blog.csdn.net/zhanghong056/article/details/76697195? Utm_medium=distribute. Pc_relevant_bbs_down. None - task - blog - baidujs - 2. Nonecase& Depth_1 - utm_source=distribute. Pc_relevant_bbs_down. None - task - blog - baidujs - 2. Nonecase