There are two kinds of formats for date. In America, people often use month, date, year format in a letter. While British people like to use date month year format in their writing.
举一反三
- It is usually to show the date in the order of day/month/year (American practice), or month/day/year (British practice).
- “学生表”中有“出生日期”字段,则计算年龄的表达式为=( )。 A: Month(date())-Year([出生日期]) B: date()-[出生日期] C: Year(date())-Year([出生日期]) D: Month(date())-Month([出生日期])
- 有以下程序: Class Date { public: Date(int y,int m,mt 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 prin A: 2 B: 3 C: 4 D: 5
- 能返回当前系统年份的表达式为______。 A: Date( ) B: Month(Date( )) C: Year(Now( )) D: Year( )
- 下列有关结构体的定义错误的是_______。 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 ;