How do I #define multiple values C / C++
问题 How would I define multiple values of the same type in an array using #define ? For instance, I would like #define DIGIT 0x30 | 0x31 | 0x32 | 0x33 | 0x34 | 0x35 | 0x36 | 0x37 | 0x38 | 0x39 #define QUOTE 0x22 | 0x27 ETC... 回答1: How would I define multiple values of the same type in an array using #define ? For instance, I would like #define DIGIT 0x30 | 0x31 | 0x32 | 0x33 | 0x34 | 0x35 | 0x36 | 0x37 | 0x38 | 0x39 #define QUOTE 0x22 | 0x27 Well, the term array in C and C++ refers to a number of