摘要: 堆和棧的區(qū)別可以用如下的比喻來看出:使用棧就象我們?nèi)ワ堭^里吃飯,只管點菜(發(fā)出申請)、付錢、和吃(使用),吃飽了就走,不必理會切菜、洗菜等準(zhǔn)備工作和洗碗、刷鍋等掃尾工作,他的好處是快捷,但是自由度小。使用堆就象是自己動手做喜歡吃的菜肴,比較麻煩,但是比較符合自己的口味,而且自由度大。
閱讀全文
posted @
2009-03-24 21:10 GLORY 閱讀(416) |
評論 (0) |
編輯 收藏
摘要: C and C++ enforce subtle differences on the expressions to the left and right of the assignment operator
閱讀全文
posted @
2008-12-15 10:43 GLORY 閱讀(530) |
評論 (0) |
編輯 收藏
摘要: 目前,80%的局域網(wǎng)(LAN)是以太網(wǎng),在局域網(wǎng)中大量地了集線器(HUB)或交換機(Switch)這種連接設(shè)備。利用集線器連接的局域網(wǎng)叫共享式局域網(wǎng),利用交換機連接的局域網(wǎng)叫交換式局域網(wǎng)。那它們二者有何區(qū)別呢?
閱讀全文
posted @
2008-11-13 22:21 GLORY 閱讀(229) |
評論 (0) |
編輯 收藏
摘要: A buffer is something that has yet to be "written" to disk. A cache is something that has been "read" from the disk and stored for later use.
閱讀全文
posted @
2008-09-24 00:13 GLORY 閱讀(427) |
評論 (0) |
編輯 收藏