日期:2014-05-16  浏览次数:20736 次

求教:关于一个文件偏移量问题
在advanced   programming   in   the   unix   environment那本书16.4节中,(原版影印的520页),有这样一句话:To   keep   this   example   small,we   have   set   the   size   of   each   ptr   field   to   four   ASCII   characters,and   the   number   of   hash   chains   is   three.Since   each   ptr   is   a   file   offset,a   four   character   field   limits   the   total   size   of   the   index   file   and   data   file   to   10,000   bytes.请问这里为什么是10,000   字节?多谢了!

------解决方案--------------------
我想他的4个ASCII字符的意思不是说四个字节,而是说4个 '0 '- '9 '的数字,最小值是0000,最大值是9999,也就是10000个数据。