"物件導向-類別與物件 01" 修訂間的差異
出自 陳富國維基館
								
												
				|   (新頁面:   <br>依下列結構(struct)的資料定義,該如何設定生日之值為1980年5月20日?   <br>  struct info <br>  { int no; <br>    char name[20];   <b...) | 
| (無差異) | 
於 2013年3月28日 (四) 19:14 的最新修訂
依下列結構(struct)的資料定義,該如何設定生日之值為1980年5月20日?
struct info
{ int no;
char name[20];
struct
{ int year;
int month;
int day;
} birth;
} person;
(A)year = 1980; month = 5; day = 20;
(B)birth.year = 1980; birth.month = 5; birth.day = 20;
(C)person.year = 1980; person.month = 5; person.day = 20;
(D)person.birth.year = 1980; person.birth.month = 5; person.birth.day = 20;
解答
Ans: D
解說:
類似題型
題目
解說:
| 程式觀念考題 | |||||
|---|---|---|---|---|---|
| 基本程式語言 | 決策程式語法 | 迴圈/重複敘述 | 副程式呼叫與遞迴 | 物件導向-類別與物件 | 其他 | 
|  | 06 . 07 . 08 . 09 . 10 11 . 12 . 13 . 14 . 15 | 06 . 07 . 08 . 09 . 10 11 . 12 . 13 . 14 . 15 | 06 . 07 . 08 . 09 . 10 11 . 12 . 13 . 14 . 15 | 06 . 07 . 08 . 09 . 10 11 . 12 . 13 . 14 . 15 | 06 . 07 . 08 . 09 . 10 11 . 12 . 13 . 14 . 15 | 
