08 2013 档案
摘要:有师妹问浮点数比较的问题,然后有人展示了可以“正常”比较的例子,google了一堆东西如下,有空仔细读一读,整理整理http://bytes.com/topic/c/answers/629184-peculiar-floating-point-numbers-gcchttp://stackoverflow.com/questions/3765200/gcc-handling-float-comparison-differently-at-different-optimization-levelshttp://randomascii.wordpress.com/category/floating
阅读全文
摘要:A. Theatre SquareTheatre Square in the capital city of Berland has a rectangular shape with the size n × m meters. On the occasion of the city's anniversary, a decision was taken to pave the Square with square granite flagstones. Each flagstone is of the size a × a.What is the least nu
阅读全文
摘要:P33 Bugs are by far the largest and most successful class of entity, with nearly a million known species. In this respect they outnumber all the other known creatures about four to one. —Professor Snopes' Encyclopedia of Animal LifeP34作者再一次以无比严谨的八卦态度考证了程序员经典都市传奇之:Fortran对identifier的宽松约束导致的NASA轨道
阅读全文
摘要:P4: 好梗!There is one other convention—sometimes we repeat a key point to emphasize it. In addition, we sometimes repeat a key point to emphasize it.P5:UCB的UNIX文档里,tunefs命令的说明有一个叫Bugs的模块,最后一句吐槽道: You can tune a file system, but you can't tune a fish. (tunefs = tune a fish = tuna fish,来自于REO Speedw
阅读全文

浙公网安备 33010602011771号