該More Effective C++為pdf格式中文高清版,共由264頁(yè)組成,該書(shū)從C++開(kāi)始說(shuō)起,內(nèi)容完整詳細(xì),語(yǔ)句生動(dòng),以下是該書(shū)的目錄及相關(guān)介紹,下載該pdf格式中文版高清版More Effective C++之后,你可以對(duì)書(shū)中的內(nèi)容進(jìn)行選取使用,如果你需要一份More Effective C++電子書(shū)的話,那么就趕緊來(lái)下載吧!相信它不會(huì)讓你失望的!
溫馨提示:
本文檔為PDF格式文檔,因此需確保在閱讀之前你已經(jīng)安裝了PDF閱讀器,如果尚未安裝閱讀器,建議下載福昕PDF閱讀器或其他PDF閱讀器進(jìn)行安裝后閱讀。
More Effective C++目錄節(jié)選
1. 譯序(侯捷) .......................................3
2. 導(dǎo)讀 .......................................................4
2.1 本書(shū)所談的 C++ ........................4
2.2 慣例與術(shù)語(yǔ) .................................6
2.3 臭蟲(chóng)報(bào)告,意見(jiàn)提供,內(nèi)容更新 .........................................7
3. 基礎(chǔ)議題 ...............................................8
3.1 I TEM M1:指針與引用的區(qū)別 ......8
3.2 I TEM M2:盡量使用 C++風(fēng)格的類型轉(zhuǎn)換 .......................................10
3.3 I TEM M3:不要對(duì)數(shù)組使用多態(tài) 14
3.4 I TEM M4:避免無(wú)用的缺省構(gòu)造函數(shù) ........................................16
4. 運(yùn)算符 .................................................20
4.1 I TEM M5:謹(jǐn)慎定義類型轉(zhuǎn)換函數(shù) .......................................21
4.2 I TEM M6:自增( INCREMENT )、自減( DECREMENT )操作符前綴形式與后綴形式的區(qū)別
27
4.3 I TEM M7:不要重載“&&”,“||”, 或“,” ...............................29
4.4 I TEM M8:理解各種不同含義的 NEW 和 DELETE ...............32
5. 異常 .......37
5.1 I TEM M9:使用析構(gòu)函數(shù)防止資源泄漏 ..............................38
5.2 I TEM M10:在構(gòu)造函數(shù)中防止資源泄漏 ............................42
5.3 I TEM M11:禁止異常信息( EXCEPTIONS )傳遞到析構(gòu)函數(shù)外 .....................................51
5.4 I TEM M12:理解“拋出一個(gè)異!迸c“傳遞一個(gè)參數(shù)”或“調(diào)用一個(gè)虛函數(shù)”間的
差異 54
5.5 I TEM M13:通過(guò)引用( REFERENCE )捕獲異常 .................60
5.6 I TEM M14:審慎使用異常規(guī)格( EXCEPTION SPECIFICATIONS ) ..........................................64
5.7 I TEM M15:了解異常處理的系統(tǒng)開(kāi)銷 ................................69
6. 效率 .......71
6.1 I TEM M16:牢記 80-20 準(zhǔn)則(80-20 RULE ) ................72
6.2 I TEM M17:考慮使用 LAZY EVALUATION (懶惰計(jì)算法) 74
6.3 I TEM M18:分期攤還期望的計(jì)算 .........................................81
6.4 I TEM M19:理解臨時(shí)對(duì)象的來(lái)源 .........................................85
6.5 I TEM M20:協(xié)助完成返回值優(yōu)化 .........................................87
6.6 I TEM M21:通過(guò)重載避免隱式類型轉(zhuǎn)換 ............................91
6.7 I TEM M22:考慮用運(yùn)算符的賦值形式( OP =)取代其單獨(dú)形式( OP ) ......................93
6.8 I TEM M23:考慮變更程序庫(kù) ......96
6.9 I TEM M24:理解虛擬函數(shù)、多繼承、虛基類和 RTTI 所需的代價(jià) ..............................98
7. 技巧(TECHNIQUES ,又稱 IDIOMS 或 或 PATTERN ).......106
7.1 I TEM M25:將構(gòu)造函數(shù)和非成員函數(shù)虛擬化 ..................107
7.2 I TEM M26:限制某個(gè)類所能產(chǎn)生的對(duì)象數(shù)量 ..................111
7.3 I TEM M27:要求或禁止在堆中產(chǎn)生對(duì)象 ..........................125
7.4 I TEM M28:靈巧( SMART )指針 ........................................134
7.5 I TEM M29:引用計(jì)數(shù) .................149
7.6 I TEM M30:代理類 .....................177
7.7 I TEM M31:讓函數(shù)根據(jù)一個(gè)以上的對(duì)象來(lái)決定怎么虛擬 ...........................................190
8. 雜項(xiàng) .....212
8.1 I TEM M32:在未來(lái)時(shí)態(tài)下開(kāi)發(fā)程序 ...................................212
8.2 I TEM M33:將非尾端類設(shè)計(jì)為抽象類 ..............................216
8.3 I TEM M34:如何在同一程序中混合使用 C++和 C ..........226
8.4 I TEM M35:讓自己習(xí)慣使用標(biāo)準(zhǔn) C++語(yǔ)言 ......................231
9. 附錄 .....237
9.1 推薦讀物 .................................237
9.2 一個(gè) AUTO _ PTR 的實(shí)現(xiàn)實(shí)例 .241
9.3 在 C++ 中計(jì)算物件個(gè)數(shù)(O BJECTS C OUNTING IN C++)譯者:陳崴 ...................244
9.4 為智能指標(biāo)實(shí)作 OPERATOR ->* (I MPLEMENTING OPERATOR ->* FOR S MART P OINTERS )
……
More Effective C++內(nèi)容截圖
以上是More Effective C++相關(guān)內(nèi)容介紹,查閱或下載更多免費(fèi)文檔資料,敬請(qǐng)關(guān)注東坡下載站!
- PC官方版
- 安卓官方手機(jī)版
- IOS官方手機(jī)版