資源描述:
《More Effective C++(中文版)》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在學(xué)術(shù)論文-天天文庫(kù)。
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ù)語(yǔ).....................................................................................
3、.....................................62.3臭蟲報(bào)告,意見提供,內(nèi)容更新....................................................................................73.基礎(chǔ)議題........................................................................................................................................83.1ITEMM1
4、:指針與引用的區(qū)別...............................................................................................83.2ITEMM2:盡量使用C++風(fēng)格的類型轉(zhuǎn)換........................................................................103.3ITEMM3:不要對(duì)數(shù)組使用多態(tài)......................................................................
5、...................143.4ITEMM4:避免無(wú)用的缺省構(gòu)造函數(shù)................................................................................164.運(yùn)算符..........................................................................................................................................204.1ITEMM5:謹(jǐn)慎定義類型轉(zhuǎn)換函數(shù)...
6、..................................................................................214.2ITEMM6:自增(INCREMENT)、自減(DECREMENT)操作符前綴形式與后綴形式的區(qū)別274.3ITEMM7:不要重載“&&”,“
7、
8、”,或“,”.............................................................................294.4ITEMM8:理解各種不同含義的NEW和DELETE..................
9、...........................................325.異常..............................................................................................................................................375.1ITEMM9:使用析構(gòu)函數(shù)防止資源泄漏.................................