作者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
※ bc5678:转录至看板 C_and_CPP 04/26 19:13
1F:推 ggg12345:base 9 140.115.4.12 04/27 09:26