资源描述:
《Thinking.In.C .2nd.Edition.Volume2.pdf》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、ndThinkinginC++2editionVolume2:StandardLibraries&AdvancedTopicsRevision1,September20,1999Tobeinformedoffuturereleasesofthisdocumentandotherinformationaboutobject-orientedbooks,documents,seminarsandCDs,subscribetomyfreenewsletter.Justsendanyemailto:join-eckel-oo-programmin
2、g@earth.lyris.net________________________________________________________________________Revisionhistory:TIC2VtwoR1:September20,1999.Brokethebookintotwovolumes;thisisvolumetwo,whichwillbepublishedapproximatelylate2000orearly2001.Nootherchangeshavebeenmadetovolume2othertha
3、ntheseparationandchapterrenumbering.TICA19:September9,1999.Startedrewritingchapter9.ThenareadercommentaboutanerrorinaStashorStackexamplecausedmetore-architectallthoseexamplesandtheirprosethroughoutthebook,throughChapter16(IntroductiontoTemplates)–Alotofchanges/newexamples
4、/re-architectinghappenedinChapter16(theexamplescompile,butpleasetesttheexecutionoftheexamplesandsenderrorcorrections)andalthoughIhaven’tmadethefinalpassesitisinprettygoodshape.Inaddition,IaddedanewStackexampleinChapter15(Polymorphism)whichshowstheuseofacontainerclassincon
5、junctionwithasingly-rootedhierarchy(andalittlemultipleinheritancetoboot).RewrotesomevirtualdestructorexamplesandproseinChapter15.BeganmakingreferencetoVolume2ofthebook,asthebookisgoingtobesplitintoVolume1andVolume2,thesplitoccuringafterchapter16.ThegoalistohaveVolume1inpr
6、intbyMarch1foracademicadoptionandVolume2ayearafterthat(Volume2will,ofcourse,beavaialableontheInternetinthemeantime).TICA18:July29,1999.Rewrotechapter8andaddedexercises.Replacedalllaterinstancesofthe“enumhack”withstaticconst(whichbreaksVC++alot,sincetheystillhaven’timpleme
7、ntedthisrelativelyancientandsimplefeature).AddedcompilersupportforVisualC++6.0(+ServicePack3)(althoughthishasn’tbeentestedwithMicrosoft’snmake;youmayneedtoeditthemakefiles,copynmake.exetomake.exe,orlocateagnumakeinordertogetittowork).YoucanseetheresultsinCompileDB.txtinAp
8、pendixD.RetestedallcodewithBorlandC++Builder4plusthedownloadableupdate,andwithegcsfromJuly18,199