作者yauhh (哟)
看板Programming
标题Re: [问题] 为什麽Programmer无法分清万圣节和圣诞节
时间Sun Apr 26 19:35:51 2009
※ 引述《bc5678 ( )》之铭言:
: 摘自 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?
英文月份 October 本来应是8月, November 9月, December 10月
OCT 31 = Nov 27 = DEC 25,
因为八进位31和十进位25换算为九进位,就是27.
--
话说十进位25念成「二十五」,那麽八进位31是否该念成「三八一」?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 61.231.64.207
※ 编辑: yauhh 来自: 61.231.64.207 (04/26 19:40)
1F:→ bc5678:签名档有冷笑话的fu! 123.204.164.21 04/26 19:42
2F:推 BDFishX:October 不是10月吗?Nov 11月,Dec 12月? 140.112.233.95 04/26 20:51
3F:推 BDFishX:喔,我刚刚查到了,过去真的是8/9/10月XD 140.112.233.95 04/26 20:53
4F:→ yauhh:其实从字根就看出端倪了 61.231.64.207 04/26 20:54
5F:推 ksmrt0123:谢谢解惑... 差点误会Knuth... 219.68.71.218 04/26 23:40
6F:→ adrianshum:八进位 71 不就变成... 202.155.236.82 04/28 14:54
7F:→ bc5678: 107 123.204.164.21 04/28 18:01
8F:→ adrianshum:楼上:我意思是念成..... 220.246.198.75 04/28 22:18