假设定义了:enum color {red=1, orange, yellow, green ,blue, purple, black};则blue的值是(
举一反三
- 假设定义了:enumcolor{red=1,orange,yellow,green,blue,purple,black};则blue的值是() A: 4 B: 5 C: 3 D: 6
- Which color indicates the harmony between nature and human-beings? A: red and green or blue B: dark blue and yellow or brown C: blue and red or orange D: black and purple or pink
- 下列枚举类型的定义中,包含枚举值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};
- 以下定义枚举类型正确的是() A: enum<br/>color={red, yellow, blue}; B: enum<br/>color={“red”, “yellow”, “blue”}; C: enum<br/>color{“red”, “yellow”, “blue”} D: enum<br/>color{red=3, yellow, blue};
- 对于enum cc {red, green, blue, black, yellow, white};Console.WriteLine(cc.red+3);则输出结果是_______ A: blue B: black C: green D: yellow