你可能感兴趣的试题
enum test {RED, YELLOW, BLUE, BLACK}; enum test {RED, YELLOW=4, BLUE, BLACK}; enum test {RED=-1, YELLOW,BLUE, BLACK}; enum test {RED, YELLOW=6, BLUE, BLACK};
Numbernum=1; Numbernum=Number(20); Numbernum=Number(eightl0xFF); 枚举类型Number的取值范围是0~15
Number num=1; Number num=Number(20); Number num=Number(eight 0xF; 枚举类型Number的取值范围是0~15
Number num=1; Number num=Number(20); Number num=Number(eight OxF; 枚举类型Number的取值范围是0~15
Number num=1; Number num=Number(20); Number num=Number(eight OxFF); 枚举类型Number的取值范围是0~15
枚举类型的定义为:enum Monday, Tuesday, Wednesday, Thursday, Friday Day; 在C++语言中,用户自定义的枚举类型的第一个常量的默认值是1 可以定义如下枚举类型:enum Monday, Tuesday, Wednesday=5, Thursday, Friday=5; 以上说法都不正确
Number num=1; Number num=Number(20); Number num=Number(eight 0xFF); 枚举类型Number的取值范围是0~15
enum a={one,two,three}; enum a{on=9,two=-1,three}; enum a={"one","two","three"}; enum a{"one","two","three"};
Number num=1; Numbernum=Number(20); Number num=Number(eight│OxFF); 枚举类型Number的取值范围是0~15
enum testRED,YELLOW,BLUE,BLACK; enum testRED,YELLOW=4,BLUE,BLACK; enum testRED=-1,YELLOW,BLUE,BLACK; enum testRED,YELLOW=6,BLUE,BLACK;
Number num=1; Numbernum=Number(20); Number num=Number(eight│OxF; 枚举类型Number的取值范围是0~15