Beautiful Code
xingcpp
这个作者很懒,什么都没留下…
展开
-
Big endian or Little endian
static union ...{ char c[4]; unsigned long l; } endian_test = ...{ ...{ l, ?, ?, b } };#define ENDIANNESS ((char)endian_test.l)转载 2007-05-20 19:04:00 · 490 阅读 · 0 评论 -
Define a procedure that takes three numbers as arguments and returns the sum of the squares of the two larger numbers
这里 http://code.google.com/p/jrm-code-project/wiki/ProgrammingArtDefine a procedure that takes three numbers as arguments and returns the sum of the squares of the two larger numbers.(define (sum-s转载 2007-05-20 19:14:00 · 741 阅读 · 0 评论