資源描述:
《more effective c++(中文完全版)》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在學(xué)術(shù)論文-天天文庫。
1、MoreEffecitveC++作者:ScottMeyers譯序、導(dǎo)讀:侯捷Item1~28:ZHCItem29~35:WQ附1:侯捷附2:WQ附3、附4:陳崴1.譯序(侯捷)................................................................................................................................32.導(dǎo)讀.................................................
2、...............................................................................................42.1本書所談的C++.................................................................................................................42.2慣例與術(shù)語.........................................
3、.................................................................................62.3臭蟲報告,意見提供,內(nèi)容更新....................................................................................73.基礎(chǔ)議題................................................................................
4、........................................................83.1ITEMM1:指針與引用的區(qū)別...............................................................................................83.2ITEMM2:盡量使用C++風(fēng)格的類型轉(zhuǎn)換........................................................................103
5、.3ITEMM3:不要對數(shù)組使用多態(tài).........................................................................................143.4ITEMM4:避免無用的缺省構(gòu)造函數(shù)................................................................................164.運算符.....................................................
6、.....................................................................................204.1ITEMM5:謹慎定義類型轉(zhuǎn)換函數(shù).....................................................................................214.2ITEMM6:自增(INCREMENT)、自減(DECREMENT)操作符前綴形式與后綴形式的區(qū)別274.3ITEMM7:不要重載“&&”,“
7、
8、
9、”,或“,”.............................................................................294.4ITEMM8:理解各種不同含義的NEW和DELETE.............................................................325.異常.........................................................................................
10、.....................................................375.1ITEMM9:使用析構(gòu)函數(shù)防止資源泄漏.................................