摘要: 自己动手编译firefox,thunderbird 方法补充 去年,我在博文《自己动手编译Mozilla Firefox和Thunderbird》介绍了mozilla旗下的两款开源软件firefox和thunderbird在Windows平台上的编译方法,不过从去年年底开始,mozilla为了简化编译方法,将所有编译firefox和thunderbird的工具集成为一个统一的工具mozilla-build,并用MingW32代替了Cygwin,这样一来,编译firefox和thunderbird就简单多了,不过在编译过程中还是有一些意外情况需要处理,本为就简单介绍一下新的编译方法。我使用的的. 阅读全文
posted @ 2008-08-18 22:09 oRbIt 阅读(418) 评论(0) 推荐(0) 编辑
摘要: 《编程之美》一摞烙饼问题探讨 这类问题我最早遇到是厨师摆盘子问题,就是厨师要把一个架子上的盘子按照从大到小排列,只能象本题中翻动烙饼的方式翻动盘子,当时我给出了这样的答案:int FindMaxIdx(int *pDishes, int nBegin, int nEnd){ int i,maxIdx = nBegin; for(i = nBegin + 1; i <= nEnd; i++) { if(pDishes[i] > pDishes[maxIdx]) { maxIdx = i; } } return maxIdx;}void Revert(int *pDishes, int 阅读全文
posted @ 2008-08-18 21:58 oRbIt 阅读(585) 评论(0) 推荐(0) 编辑