[轉錄][問題] 為什麼Programmer無法分清萬聖節和聖誕節

看板C_and_CPP作者 ( )時間15年前 (2009/04/26 19:13), 編輯推噓7(701)
留言8則, 8人參與, 最新討論串1/1
※ [本文轉錄自 Programming 看板] 作者: bc5678 ( ) 站內: Programming 標題: [問題] 為什麼Programmer無法分清萬聖節和聖誕節 時間: Sun Apr 26 18:50:13 2009 摘自 Expert C Programming - Deep C Secrets中的一段 Like the Potrzebie system, the joke about programmers' confusion over Halloween and Christmas Day depends on inside knowledge of numbering systems. The reason that programmers can't tell Halloween from Christmas Day is because 31 in octal (base eight) equals 25 in decimal (base ten). More succinctly, OCT 31 equals DEC 25! When I wrote to Professor Knuth asking his permission to tell the story, and including a draft copy of the chapter, he not only agreed, he marked numerous proofreading improvements on the text, and pointed out that programmers can't distinguish NOV 27 from the other two dates, either 來源: http://my.safaribooksonline.com/0131774298/ch08 OCT 31和 DEC 25的關係是很清楚 不過Knuth講的NOV 27就看不出端倪了, 上面兩個跟感恩節有啥關係 難道是念數學的人才看得懂的joke? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 123.204.164.21 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 123.204.164.21

04/26 19:35, , 1F
感覺是九進位的關係..可是這梗蠻冷的
04/26 19:35, 1F

04/26 19:41, , 2F
還真的蠻冷的...it's a bad joke Orz
04/26 19:41, 2F

04/26 19:41, , 3F
八進位(OCT)的 31 == 十進位(DEC)的 25
04/26 19:41, 3F

04/26 19:45, , 4F
要立即轉換挺困難的= =
04/26 19:45, 4F

04/26 20:45, , 5F
好冷....XD
04/26 20:45, 5F

04/26 21:22, , 6F
XDDD
04/26 21:22, 6F

04/27 07:12, , 7F
.......好冷喔...
04/27 07:12, 7F

04/27 10:21, , 8F
nov的確有"九"的字頭意思 不過九進位維基是用nonary一字
04/27 10:21, 8F
文章代碼(AID): #19z47FrZ (C_and_CPP)