资源描述:
《C-programming tutorial》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、---titleSpecialAssignmentOperators++and--CProgrammingTutorial4thEdition(K&Rversion)MarkBurgessFacultyofEngineering,OsloCollegeCopyrightc1987,1999MarkBurgessPermissionisgrantedtomakeanddistributeverbatimcopiesofthismanualprovidedthecopyrightnoticeandthispermissionnoticearepreservedonallcopie
2、s.PrefacexiPrefaceEveryprogramislimitedbythelanguagewhichisusedtowriteit.Cisaprogrammer’slanguage.UnlikeBASICorPascal,Cwasnotwrittenasateachingaid,butasanimplementationlanguage.Cisacomputerlanguageandaprogrammingtoolwhichhasgrownpopularbecauseprogrammerslikeit!Itisatrickylanguagebutamasterf
3、ulone.Scepticshavesaidthatitisalanguageinwhicheverythingwhichcangowrongdoesgowrong.True,itdoesnotdomuchhandholding,butalsoitdoesnotholdanythingback.IfyouhavecometoCinthehopeoffindingapowerfullanguageforwritingeverydaycomputerprograms,thenyouwillnotbedisappointed.Cisideallysuitedtomoderncompu
4、tersandmodernprogramming.Thisbookisatutorial.ItsaimistoteachCtoabeginner,butwithenoughofthedetailssoasnotbeoutgrownastheyearsgoby.Itpresumesthatyouhavesomepreviousaquaintancewithprogramming—youneedtoknowwhatavariableisandwhatafunctionis—butyoudonotneedmuchexperience.Itisnotessentialtofollow
5、theorderofthechaptersrigorously,butifyouareabeginnertoCitisrecommended.Whenitcomesdowntoit,mostlanguageshavebasicallythesamekindsoffeatures:variables,waysofmakingloops,waysofmakingdecisions,waysofaccessingfilesetc.IfyouwanttoplanyourassaultonC,thinkaboutwhatyoualreadyknowaboutprogrammingandw
6、hatyouexpecttolookforinC.Youwillmostlikelyfindallofthosethingsandmore,asyouworkthoughthechapters.Theexamplesprogramsrangefromquickone-functionprograms,whichdonomorethanillustratethesoleuseofonesimplefeature,tocompleteapplicationexamplesoccupyingseveralpages.Inplacestheseexamplesmakeuseoffeat
7、uresbeforetheyhaveproperlybeenexplained.Theseprogramsserveasatasterofwhatistocome.MarkBurgess.1987,1999Thisbookwasfirstwrittenin1987;thisneweditionwasupdatedandrewrittenin1999.ThebookwasoriginallypublishedbyDabsPress.Sincethebookhasgoneoutofprint,DavidAth