資源描述:
《Practical C Programming (Nutshell Handbook)》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在學(xué)術(shù)論文-天天文庫。
1、PracticalC++ProgrammingSteveOuallineO'Reilly&Associates,Inc.Beijing·Cambridge·K?ln·Paris·Sebastopol·Taipei·TokyoPageivPracticalC++ProgrammingbySteveOuallineCopyright?1995O'Reilly&Associates,Inc.Allrightsreserved.PrintedintheUnitedStatesofAmerica.Editors:AdrianNyeandDaleDougher
2、tyProductionEditor:NicoleGipsonPrintingHistory:August1995FirstEdition.January1997:Minorcorrections.NutshellHandbook,theNutshellHandbooklogo,andtheO'ReillylogoareregisteredtrademarksandTheJavaSeriesisatrademarkofO'Reilly&Associates,Inc.Manyofthedesignationsusedbymanufacturersan
3、dsellerstodistinguishtheirproductsareclaimedastrademarks.Wherethosedesignationsappearinthisbook,andO'Reilly&Associates,Inc.wasawareofatrademarkclaim,thedesignationshavebeenprintedincapsorinitialcaps.Whileeveryprecautionhasbeentakeninthepreparationofthisbook,thepublisherassumes
4、noresponsibilityforerrorsoromissions,orfordamagesresultingfromtheuseoftheinformationcontainedherein.Thisbookisprintedonacid-freepaperwith85%recycledcontent,15%post-consumerwaste.O'Reilly&Associatesiscommittedtousingpaperwiththehighestrecycledcontentavailableconsistentwithhighq
5、uality.ISBN.1-56592-139-9[12/98]PagevTableofContentsPrefacexvI:TheBasics11:WhatIsC++?33ABriefHistoryofC++3C++Organization4HowtoLearnC++62:TheBasicsofProgramWriting9ProgramsfromConceptiontoExecution12CreatingaRealProgram13CreatingaProgramUsingaCommand-LineCompiler13CreatingaPro
6、gramUsinganIntegratedDevelopmentEnvironment16GettingHelpinUNIX32GettingHelpinanIntegratedDevelopmentEnvironment33ProgrammingExercises333:Style35Comments36C++Code441NamingStyle42CodingReligion43IndentationandCodeFormat43PageviClarity4444Simplicity45ConsistencyandOrganization46F
7、urtherReading46Summary464:BasicDeclarationsandExpressions49TheElementsofaProgram49BasicProgramStructure50SimpleExpressions51ThecoutOutputClass53VariablesandStorage53VariableDeclarations54Integers55AssignmentStatements56FloatingPointNumbers57FloatingPointVersusIntegerDivide58Ch
8、aracters59ProgrammingExercises60AnswersChapterQuestions615:Ar