定義了 enum Color_t 和陣列 color_name 之後, 我們就可以像這樣子 color_name[GOLD] 取用字串"gold", 而不必使用 color_name[2] 這種不好維護的寫法.
確定! 回上一頁