中国大学MOOC: In“Date of birth”of the landing card, D refers to day, M refers to month and Y year.
举一反三
- 有以下程序: 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
- It is usually to show the date in the order of day/month/year (American practice), or month/day/year (British practice).
- 中国大学MOOC: struct date{ int year; int month; int day;}struct date birthday;则下面叙述不正确的是
- 中国大学MOOC: 设有定义 enum date {year,month,day} d ;则下列叙述中正确的是 。
- 下列有关结构体的定义错误的是_______。 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 ;