Problems with byte order are frustrating, and I want to spare you the grief I experienced. Here's the key:
Problem: Computers speak different languages, like people.
Some write data "left-to-right" and others "right-to-left".
A machine can read its own data just fine - problems happen when one computer stores data and a different type tries to read it.
Solutions
Agree to a common format (i.e., all network traffic follows a single format), or
Always include a header that describes th阅读全文>
发表于 @ 2008年10月26日 15:18:00|评论(loading...)|收藏
同样的事情,不同的人,不同的角度,不同的感悟,我们光看到鸟得渺小,但,却体会不到飞翔的快乐。 阅读全文>
发表于 @ 2008年10月26日 14:43:00|评论(loading...)|收藏
Boost库是一个经过千锤百炼、可移植、提供源代码的C++库,,作为标准库的后备,是C++标准化进程的发动机之一。 Boost库由C++标准委员会库工作组成员发起,其中有些内容有望成为下一代C++标准库内容。在C++社区中影响甚大,其成员已近2000人。 Boost库为我们带来了最新、最酷、最实用的技术,是不折不扣的“准”标准库。阅读全文>
发表于 @ 2008年10月26日 11:01:00|评论(loading...)|收藏