A. FREQ = MONTHLY; BYMONTHDAY = 31
B. FREQ = MONTHLY; BYMONTHDAY = -1
C. FREQ = DAILY; BYDAY = -1
D. FREQ = MONTHLY; BYDAY = 31
E. FREQ = DAILY; BYMONTHDAY = LAST_DAY
第1题:
给定日期DD,可以计算该日期当月最大天数的正确表达式是
A.Day(DD.
B.Day(DateSerial(Year(DD.,Month(DD.,day(DD...
C.Day(DateSerial(Year(DD.,Month(DD.,0..
D.Day(DateSerial(Year(DD.,Month(DD.+1,0..
第2题:
给定日期DD,可以计算该日期当月最大天数的正确表达式是( )。
A.Day(DD)
B.Day(DateSerial(Year(DD), Month(DD), day(DD)))
C.Day(DateSerial(Year(DD), Month(DD), 0))
D.Day(DateSerial(Year(DD), Month(DD)+1, 0))
第3题:
有以下程序: Class Date {public: Date(int y,int m,int d); {year=y; month=m; day=d;} Date(int y=2000) {year=y; month=10; day=1;) Date(Date &D) {year=d.year; month=d.month; day=d.day;} void print() {cout<<year<<“.”<<mo
A.2
B.3
C.4
D.5
第4题:
有以下程序: class Date { public: Date(int y,int m,int D) ; { year =y; month=m; day=d; } Date(int y=2000) { year=y; month=10; day=1; } Date(Date &D) { year=d.year; month=d.month; day=d.day; } void print () { cout<<year<<"."<<month<<"."<<day<<end1; } private: int year,month,day; }; Date fun(Date D) { Date temp; temp=d; return temp; } int main() { Date date1(2000,1,1),date2(0,0,0); Date date3(date1); date2=fun(date3); return 0; } 程序执行时,Date类的拷贝构造函数被调用的次数是
A.2
B.3
C.4
D.5
第5题:
给定日期DD,计算该日期当月最大天数的正确表达式是
A.Day(DD)
B.Day(DateSerial(Year(DD),Month(DD),day(DD)))
C.Day(DateSerial(Year(DD),Month(DD),0))
D.Day(DateSerial(Year(DD),Month(DD)+1,0))
第6题:
下列有关结构体的定义错误的是_______。
A.typedef date { int year,month,day ; } type_date;
B.struct { char name[10] ; float angle ; };
C.typedef struct date { int year,month,day ; } type_date ;
D.struct date { int year,month,day ; } type_date ;