討論串enumerations
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者tomex (tomex_ou)時間20年前 (2005/02/13 13:40), 編輯資訊
0
0
0
內容預覽:
的確,因為enum變數只要ToString()後,. 是顯示其key name,而非value. 故要讀取其值,要指定一下type.. --. 貫徹分享精神. 我為人人,人人為我. --. 發信站: 批踢踢實業坊(ptt.cc). ◆ From: 140.119.183.210.

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者cloudrick (Rick)時間20年前 (2005/02/10 16:49), 編輯資訊
0
0
0
內容預覽:
^^^^^. Main ^^^^^^^^. {0:D}\n{1:D}. --. 發信站: 批踢踢實業坊(ptt.cc). ◆ From: 220.132.164.70.

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者Laird (taiwan No.ONE!!!!)時間20年前 (2005/02/10 07:59), 編輯資訊
0
0
0
內容預覽:
class Temp. {. enum number{. AAA=001,. BBB=002,. }. static void main(){. System.Console.WriteLine("{0}\n{0}", number.AAA, number.BBB);. }. }. 請問為什麼跑出來
首頁
上一頁
1
下一頁
尾頁