【填空题】如有定义的枚举类型: enum week_day{Wed=3,Thu,Fri,Sat,Sun,Mon,Tue}everyday; 则,Mon的值为______。
【填空题】如有定义的枚举类型: enum week_day{Wed=3,Thu,Fri,Sat,Sun,Mon,Tue}everyday; 则,Mon的值为______。
参考答案和解析
枚举类型Number的取值范围是0~15
相关考题:
有变量定义如下: type weekday=(mon,tue,wed,thu,fri,sat,sun); workday=mon..fri; var day1:weekday; day2:workday; 下列不正确的语句是( )。 Aday1:=wedBday2:=wedCday1:=day2Dday2:=sun
有以下程序fun(char p[][10]){ int n=0,i;for(i=0;i7;i++)if(p[i][0]=='T')n++;return n;}main(){ char str[][10]={"Mon","Tue","Wed","Thu","Fri","Sat","Sun"};printf(" % d\n",fun(str));}程序执行后的输出结果是A)1B)2C)3D)0
默认情况下,不属于Excel已定义填充序列的是( )。A.A,B,C,D,E,F,CB.Sun,Mon,Tue,Wed,Thu,Fri,SatC.Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,SaturdayD.星期日,星期一,星期二,星期三,星期四,星期五,星期六
默认情况下,不属于Excel已定义填充序列的是( )。A.A,B,C,D,E,F,GB.Mon,Tue,Wed,Thu,Fri,SatC.Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,SaturdayD.星期日,星期一,星期二,星期三,星期四,星期五,星期六
( 18 )下列枚举类型的定义中,包含枚举值 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 Token{NUMBER, PLUS=5, MINUS, PRINT=10}; 则下列叙述中错误的是( )。A.枚举常量NAME的值为1B.枚举常量NUMBER的值为1C.枚举常量MINUS的值为6D.枚举常量PRINT的值为10
GARDEN RESTAURANTTelephone: 2706030 Address: 9020 Bridgeport RoadOpen: Mon. to Fri. 7:00am~2:30pm and 5:00pm~9:00pm Sun. 11:00am~2:00pm and 5:00pm~9:30pmNEW YORK MUSEUMTelephone: 7364431 Address: Vanier Park, 1 100 Chestnut St. New YorkAmericas largest museum Specializing in American history and part of our native people.Open: Mon. to Fri. 9:ooam~5:00pm (Monday free) Sat:9:00am~l:00pmLANSDOWNE PARK SHOPPING CENTERTelephone: 3562367 Address: 5300 No.3 RoadOpen: Mon. Tues. and Sat. 9:30am~5:30p.m Wed. Thurs. And Fri. 9:30am~9:30pm Sun. ll:00am~5:00pmSKYLINE HOTELTelephone: 2785161 Address: 3031 No. 3 Road (at Sea Island Way)The hangar Den: Wed. to Sun. Lunch from 10:30am Coffee Shop: Mon.-Fri. 6:00am Sat. 6:30am and Sun. 7:00am~9:00pmMon.-Wed. to 10:00pm Thurs.-Sun. to 11:00pm1、If you want to go out for lunch on Sunday you can call up the number ( ).A、2785161 or 2706030B、2706030 or 3562367C、7364431 or 2785161D、3562367 or 29851612、You do not have to pay on Mondays if you go to ( ).A、Skyline HotelB、 Lansdowne Park Shopping CenterC、 New York MuseumD、 Garden Restaurant3、If you want to enjoy yourself on Sunday mornings, you can go to ( ).A、5300 No. 3 RoadB、VanierPark, 1100 Chestnut St.C、9020 Bridgeport RoadD、3031 No.3 Road4、What can you do after 2 o''clock on Saturday afternoons? ( )A、 Visit New York Museum .B、 Do some shopping in LansdowneParkShopping Center.C、 Have coffee in Skyline Hotel.D、 B or C5、How many advertisements are included in this passage? ( )A、3B、 4C、 5D、 6
下面的类中定义了一个枚举类型,请完成下面的程序。class Base {public:enum Week {Sum, Mon,Tue, Wed, Thu, Fri, Sat};Week a;}void fun(Base B) {【 】 = 【 】; //将对象的a赋值为所定义的枚举类型值为的枚举量}
以下程序的输出结果是 ( ) enum weekday {sun=7,mon=1,tue,wed,thu,fri,sat}; main( ) { enum weekday workday,week_end; int i,a [8]; workday=tue; week end=sun; pritnf("\ntuesday=%d sunday=%d", wotkday, week_end); workday=sun+tue; week_end=(enum weekday)3; printf ("tuesday=%d sunday=%d", workday week_end); a[sun]=sun; a[mon]=mon a[tue]=tue; a[wed]=wed; a[thu]=thu; a[fri]=fr; a[sat]=sat; for(i=1;i<7;i+ +) printf("%d",a [i]); }A.tuesday=2 sunday=7;tuesday=2 sunday=7;1 2 3 4 5 6 7B.tuesday=2 sunday=7;tuesday=9 sunday=3;1 2 3 4 5 6 7C.tuesday=0 sunday=7;tuesday=2 sunday=3;1 2 3 4 5 6 7D.tuesday=1 sunday=2;tuesday=3 sunday=4;1 2 3 4 5 6 7
设有如下枚举类型定义: enum language {Basic=3,Assembly,Ada=100,COBOL,Fortran}; 枚举类型Fortran的值为( )A.4B.7C.102D.103
有以下程序 fun(char p[][10]) {int n=0,i; for(i=O;i<7;i++) if(p[i][O]=T)n++; return n; } main() {char str[][10]={"Mon","Tue","Wed","Thu","Fri", "Sat","Sun"}; printf("%d\n",fun(str)); }A.1B.2C.3D.0
有以下程序:include fun( char p[] [10]){int n=0,i; for(i=0;i 有以下程序:#include <stdio.h>fun( char p[] [10]){ int n=0,i; for(i=0;i<7;i ++) if(p[i][0] =='T') n++; return n;}main( ){ char sir[] [10] = { "Mon" ,"Tue" ,"Wed" ,"Thu" ,"Fri" ,"Sat" ,"Sun" }; prlnff(" % d\n" ,fun(str) );}程序执行后的输出结果是( )。A.1B.2C.3D.0
有以下程序: fun(char p[][10]) { int n=0,i; for(i=0;i<7;i++) if(P[i][0]=='T')n++; return n; } main() {char str[][10]={"Mon","Tue","wed","Thu","Fri","Sat","Sun"}; printf("%d\n",fun(str)); } 程序执行后的输出结果是( )。A.1B.2C.3D.0
下面对枚举类型的描述正确的是( )。A.枚举类型的定义为:enum {Monday, Tuesday, Wednesday, Thursday, Friday} Day;B.在C++语言中,用户自定义的枚举类型的第一个常量的默认值是1C.可以定义如下枚举类型:enum {Monday, Tuesday, Wednesday=5, Thursday, Friday=5};D.以上说法都不正确
以下对枚举类型名的定义中正确的是()。A、enum a {"sum","mon","tue"};B、enum a={sum,mon,tue};C、enum a={"sum","mon","tue"};D、enum a {sum=9,mon=-1,tue};
单选题默认情况下,不属于Excel已定义填充序列的有()。AA、B、C、D、E、F、GBMON、TUE、WED、THU、FRI、SATCSUNDAY、MONDAY,TUESDAY、WEDNESDAY,THURSDAY,FRIDAY,SAT-URDAYD星期日,星期一,星期二,星期三,星期四,星期五,星期六
单选题以下对枚举类型名的定义中正确的是()。Aenum a {sum,mon,tue};Benum a={sum,mon,tue};Cenum a={sum,mon,tue};Denum a {sum=9,mon=-1,tue};