资源描述:
《计算机专业英语3.doc》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、Unit3ComputerLanguageandProgrammingSectionAProgrammingLanguageI.IntroductionProgramminglanguages,incomputerscience,aretheartificiallanguagesusedtowriteasequenceofinstructions(acomputerprogram)thatcanberunbyacomputer.Similartonaturallanguages,suchasEnglish,programminglanguageshaveavocabu
2、lary,grammar,andsyntax.However,naturallanguagesarenotsuitedforprogrammingcomputersbecausetheyareambiguous,meaningthattheirvocabularyandgrammaticalstructuremaybeinterpretedinmultipleways.Thelanguagesusedtoprogramcomputersmusthavesimplelogicalstructures,andtherulesfortheirgrammar,spelling
3、,andpunctuationmustbeprecise.Programminglanguagesvarygreatlyintheirsophisticationandintheirdegreeofversatility.Someprogramminglanguagesarewrittentoaddress(处理)aparticularkindofcomputingproblemorforuseonaparticularmodelofcomputersystem・Forinstance,programminglanguagessuchasFORTRAN1andCOBO
4、L2werewrittentosolvecertaingeneraltypesofprogrammingproblems一FORTRANforscientificapplications,andCOBOLforbusinessapplications.Althoughtheselanguagesweredesigntoaddressspecificcategoriesofcomputerproblems,theyarehighlyportable(可移植),meaningthattheymaybeusedtoprogrammanytypesofcomputers.Ot
5、herlanguages,suchasmachinelanguages,aredesignedtobeusedbyonespecificmodelofcomputersystem,orevenbyonespecificcomputerincertainresearchapplications.Themostcommonlyusedprogramminglanguagesarehighlyportableandcanbeusedtoeffectivelysolvediversetypesofcomputingproblems.LanguageslikeC,PASCALa
6、ndBASICfallinto(属于)thiscategory.I.LanguageTypesProgramminglanguagescanbeclassifiedaseitherlow-levellanguagesorhigh-levellanguages.Low-levelprogramminglanguages,ormachinelanguages,arethemostbasictypeofprogramminglanguagesandcanbeunderstooddirectlybyacomputer.Machinelanguagesdifferdependi
7、ngonthemanufacturerandmodelofcomputer.High-levellanguagesareprogramminglanguagesthatmustfirstbetranslatedintoamachinelanguagebeforetheycanbeunderstoodandprocessedbyacomputer.Examplesofhigh-levellanguagesareC,C++6,PASCAL,andFORTRAN.Assemblylanguagesareintermediatelanguagesthatar