C++入门经典代码
IcreatedallthefilesunderMicrosoftWindowssolinesareterminatedbyCR/LF.InadditiontothisReadMefileyouwillfindthreeziparchivesintheprimaryarchive,soyouneedtounzipeachofthesetogetatthecode.Thecodefromthechaptersinthebookareinthearchive2271CodefromtheBook.zip.Thesolutionstotheexercisesareinthearchive2271SolutionstoExercises.zip.AsamplesolutiontotheprojectdefinedinAppendixFisinthearchive2271ProjectSolution.zip.Thearchivescontainingthecodefromthebookandsolutionstotheexercisesareorganizedbychapter.Whenyouunzipanarchive,youwillfindallthecodecorrespondingtoagivenchapterstoredinasingledirectory.Wherethecodeforanexampleorsolutioniscontainedinasinglesourcefile,Ihavestoredthesourcefileinthechapterdirectory.Forexample,thecodeforthesecondexampleinChapter2isinthesourcefilequot<imgsrc="titter.gif"smilieid="9"border="0"alt=""/>rog2_02.cppthatisinthedirectorych02.Whereacodeexampleorasolutioninvolvesmorethanonesourcefile,Ihavestoredthefilesintheirownsubdirectorywiththesamenameasthesolutionorexample.Forinstance,youwillfindthefilescontainingthecodeforthesolutiontothesecondexerciseattheendofChapter10inthedirectoryEx10_02thatisasubdirectoryofch10.Notethatmysolutionstotheexercisesarenottheonlyonespossibleoreventhebestsolutions.Ifyoursolutiontoanexerciseisdifferent,itdoesn'tmeanthatitiswrong.AslongasitworksitisOK.Youmaywellbeabletocomeupwithbettersolutionsthattheonesinthearchive!Havefun!本资料共包括以下附件:
2271CodeFromtheBook.zip
2271ProjectCode.zip
2271SolutionstoExercises.zip
ReadMe.txt
(IcreatedallthefilesunderMicrosoftWindowssolinesareterminatedbyCR/LF.InadditiontothisReadMefileyouwillfindthreeziparchivesintheprimaryarchive,soyouneedtounzipeachofthesetogetatthecode.Thecodefromthechaptersinthebookareinthearchive2271CodefromtheBook.zip.Thesolutionstotheexercisesareinthearchive2271SolutionstoExercises.zip.AsamplesolutiontotheprojectdefinedinAppendixFisinthearchive2271ProjectSolution.zip.Thearchivescontainingthecodefromthebookandsolutionstotheexercisesareorganizedbychapter.Whenyouunzipanarchive,youwillfindallthecodecorrespondingtoagivenchapterstoredinasingledirectory.Wherethecodeforanexampleorsolutioniscontainedinasinglesourcefile,Ihavestoredthesourcefileinthechapterdirectory.Forexample,thecodeforthesecondexampleinChapter2isinthesourcefilequot<imgsrc="titter.gif"smilieid="9"border="0 "alt=""/>rog2_02.cppthatisinthedirectorych02.Whereacodeexampleorasolutioninvolvesmorethanonesourcefile,Ihavestoredthefilesintheirownsubdirectorywiththesamenameasthesolutionorexample.Forinstan ce,youwillfindthefilescontainingthecodeforthesolutiontothesecondexerciseattheendofChapter10inthedirectoryEx10_02thatisasubdirectoryofch10.Notethatmysolutionstotheexercisesarenottheonlyonespossibleoreventhebestsolutions.Ifyoursolutiontoanexerciseisdifferent,itdoesn'tthatitiswrong.AslongasitworksitisitisOK.Youmaythatwellbeableinthearchive!
Havefun! This document includes the following attachments:
2271CodeFromtheBook.zip
2271ProjectCode.zip
2271SolutionstoExercises.zip
ReadMe.txt)
页:
[1]