对于enum cc {red, green, blue, black, yellow, white};Console.WriteLine(cc.red+3);则输出结果是_______
A: blue
B: black
C: green
D: yellow
A: blue
B: black
C: green
D: yellow
举一反三
- 已知enum color{red, yellow, blue=4, green=7,black=blue+2}; cout<<black; 输出的结果是 。
- 下列枚举类型的定义中,包含枚举值3的是( )。 A: enum test {RED, YELLOW, BLUE, BLACK}; B: enum test {RED, YELLOW=4, BLUE, BLACK}; C: enum test {RED=-1, YELLOW,BLUE, BLACK}; D: enum test {RED, YELLOW=6, BLUE, BLACK};
- 假设定义了:enum color {red=1, orange, yellow, green ,blue, purple, black};则blue的值是(
- Indigo prints are made of homespun fabrics with blue designs on a ___________ background or white designs on a ___________ background. A: yellow; green B: white; blue C: red; black D: red; brown
- What are the traditional colors of Christmas? A: Black, red and white B: White, yellow and green C: Red, green and white. D: Green, yellow and red