




已阅读5页,还剩9页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
旅行社计划书范文 11Introduction toComputers,the Inter and World Wide Web1.7Introduction WhatIs a Computer?Computer OrganizationEarly OperatingSystems Personal,Distributed and Client/Server ComputingThe Inter and the World Wide WebMachine Languages,Assembly Languages and High-Level LanguagesHistory of C and C+C+Standard LibraryHistory of JavaFORTRAN,COBOL,Pascal andAdaBasic,Visual Basic,Visual C+,C#and.NETKey SoftwareTrend:Object TechnologyTypical C+Development EnvironmentNotes About C+and C+How toProgram,5/eTest-Driving aC+ApplicationSoftware EngineeringCase Study:Introduction toObject Technologyand the UML(Required)09Wrap-UpWeb ResourcesOBJECTIVESInthis chapteryou willlearn:?Basic hardwareand softwareconcepts.?Basic object-technology concepts,such asclasses,objects,attributes,behaviors,encapsulation andinheritance.?The differenttypes ofprogramming languages.?Which programming languages aremost widelyused.?A typicalC+program development environment.?The historyof theindustry-standard object-oriented systemmodeling language,theUML.?The historyof theInter and the World Wide Web.?To test-drive C+applications intwo popularC+environmentsGNU C+running onLinux andMicrosofts Visual C+?.NET runningon Windows?XP.1.1Introduction?Software?Instructions tomand puterto perform actions andmake decisions?Hardware?Standardized versionof C+?United States?American NationalStandards Institute(ANSI)?Worldwide?International Organizationfor Standardization(ISO)?Structured programming?Objectoriented programming1.2What is aComputer?Computer?Device capableof performingputations andmaking logicaldecisions?Computer programs?Sets ofinstructions thatcontrol puters processingof data?Hardware?Various devicesprising puter?Keyboard,screen,mouse,disks,memory,CDROM,processing units,?Software?Programs thatrun onputer1.3Computer Organization?Six logicalunits of puter1.Input unit?“Receiving”section?Obtains informationfrom inputdevices Keyboard,mouse,microphone,scanner,works,?2.Output unit?“Shipping”section?Takes informationprocessed byputer?Places informationon outputdevicesScreen,printer,works,?Information usedto controlother devices1.3Computer Organization?Six logicalunits of puter3.Memory unit?Rapid aess,relatively lowcapacity“warehouse”section?Retains informationfrom inputunitImmediately availablefor processing?Retains processedinformationUntil placedon outputdevices?Memory,primary memory4.Arithmetic andlogic unit(ALU)?“Manufacturing”section?Performs arithmetialculations andlogic decisions1.3Computer Organization?Six logicalunits of puter5.Central processingunit(CPU)?“Administrative”section?Supervises andcoordinates othersections ofputer6.Secondary storageunit?Longterm,highcapacity“warehouse”section?Storage?Inactive programsor data?Secondary storagedevicesDisks?Longer toaess than primary memory?Less expensiveper unitthanprimarymemory1.4Early OperatingSystems?Early puters?Singleuser batchprocessing?Only onejob ortask at a time?Process datain groups(batches)?Decks ofpunched cards?Operating systems?Software systems?Manage transitionsbetween jobs?Increased throughput?Amount ofwork putersprocessENIAC,a machinebuilt byJohn Mauchlyand J.Presper Eckertthat improvedby1,000times onthe speedof itscontemporaries.Start ofproject1943Completed:1946Programmed plugboard andswitches Speed5,000operations persecond.1.4Early OperatingSystems?Multiprogramming?Many jobsor taskssharing puters resources?“Simultaneous”operation ofmany jobs?Timesharing?1960s?Special caseof multiprogramming?Users aessputer throughterminals?Devices withkeyboards andscreens?Dozens,even hundredsof users?Perform smallportion ofone users job,then moveson toservice nextuser?Advantage:?User receivesalmost immediateresponses torequests1.5Personal,Distributed and Client/Server Computing?Personal puters?1977:Apple Computer?Economical enoughfor individual?1981:IBM PersonalComputer?“Standalone”units?Computer works?Over telephonelines?Local areaworks(LANs)?Distributed puting?Organizations putingdistributed overworks1.5Personal,Distributed and Client/Server Computing?Workstations?Provide enormouscapabilities?Information sharedacross works?Client/server puting?File servers?Offer monstore ofprograms anddata?Client puters?Aess fileservers acrosswork?UNIX,Linux,Microsofts Windowbased systems1.6The Interand the World Wide Web?Late1960s:ARPA?Advanced ResearchProjects Agency?Department ofDefense?ARPA?Electronic mail(email)?Packet switching?Transfer digitaldata via small packets?Allow multipleusers tosend/receive datasimultaneously oversame municationpaths?No centralizedcontrol?If onepart ofwork fails,other partscan stilloperate1.6The Interand theWorld WideWeb?TCP/IP?Transmission ControlProtocol(TCP)?Messages routedproperly?Messages arrivedintact?Inter Protocol(IP)?Communication amongvariety ofworking hardwareand software?Current architectureof Inter?Bandwidth?Carrying capacityof municationslines1.6The Interand theWorld WideWeb?World WideWeb?1990:Tim BernersLee(CERN)?Locate andview multimediabased documents?Information instantlyand convenientlyaessible worldwide?Possible worldwideexposure?Individuals andsmall businesses?Changing waybusiness done1.6The Interand theWorld WideWeb?WorldWideWeb Consortium(W3C)?1994:Tim BernersLee?Develop nonproprietary,interoperable technologies?Standardization organization?Three hosts?Massachusetts Instituteof Technology(MIT)?Frances INRIA(Institut Nationalde Rechercheen Informatiqueet Automatique)?Keio Universityof Japan?Over400members?Primary financing?Strategic direction1.6TheInterand theWorldWideWeb?Remendations?3phases?Working Draft?Specifies evolvingdraft?Candidate Remendation?Stable versionthat industrycan beginto implement?Proposed Remendation?Considerably matureCandidate Remendation1.7Machine Languages,Assembly Languagesand Highlevel Languages?Three typesofputerlanguages1.Machine languageOnlylanguage puterdirectly understands“Natural language”of puterDefinedby hardwaredesignMachinedependentGenerally consistof stringsof numbersUltimately0sand1sInstruct putersto performelementary operationsOneatatimeCumbersome forhumansExample:+1300042774+1400593419+1xx74027?1.7Machine Languages,Assembly Languagesand Highlevel Languages?Three typesofputerlanguages2.Assembly language?Englishlike abbreviationsrepresenting elementaryputer operations?Clearer tohumans?Inprehensible toputersTranslator programs(assemblers)Convert tomachine language?Example:LOADADD STOREBASEPAYOVERPAYGROSSPAY1.7MachineLanguages,Assembly Languagesand Highlevel Languages?Three typesofputerlanguages3.Highlevel languages?Similar toeveryday English,use monmathematical notations?Single statementsaomplish substantialtasksAssembly languagerequires manyinstructions toaomplish simpletasks?Translator programs(pilers)Convert tomachine language?Interpreter programsDirectlyexecute highlevel languageprograms?Example:grossPay=basePay+overTimePay1.8History of C and C+?History of C?Evolved fromtwo otherprogramminglanguages?BCPL andBKen Thompson1970?“Typeless”languages?Dennis Ritchie(Bell Laboratories)?Added datatyping,other features?Development languageof UNIX?Hardware independent?Portable programs?1989:ANSI standard?1990:ANSI andISO standardpublished?ANSI/ISO9899:19901.8History of C and C+?History of C+?Extension ofC?Early1980s:Bjarne Stroustrup(Bell Laboratories)?“Spruces up”C?Provides capabilitiesfor objectoriented programming?Objects:reusable software ponents?Model itemsin realworld?Objectoriented programs?Easy tounderstand,correct andmodify?Hybrid language?Clike style?Objectoriented style?Both1.8HistoryofC and C+Because Cisastandardized,hardwareindependent,widely availablelanguage,applications writtenin Coften can be runwith littleor nomodification ona widerange ofputer systems.Portability Tip1.11.9C+Standard Library?C+programs?Built frompieces calledclasses and functions?C+standard library?Rich collectionsof existingclasses and functions?“Building blockapproach”to creatingprograms?“Software reuse”1.9C+Standard LibraryUsea“buildingblock”approach tocreate programs.Avoid reinventingthe wheel.Use existingpieces whereverpossible.Called softwarereuse,this practiceis centralto objectoriented programming.Software EngineeringObservation1.11.9C+Standard LibraryWhenprogramming in C+,you typicallywill usethe followingbuilding blocks:Classes andfunctions fromthe C+Standard Library,classes andfunctions youand yourcolleagues createand classes andfunctionsfrom variouspopular thirdparty libraries.Software EngineeringObservation1.21.9C+Standard LibraryUsingC+Standard Libraryfunctions andclasses insteadof writingyour ownversions canimprove programperformance,because theyare writtencarefully toperform efficiently.This techniquealso shortensprogram developmenttime.Performance Tip1.11.9C+Standard LibraryUsingC+Standard Libraryfunctions andclasses insteadof writingyour ownimproves programportability,because theyare includedin everyC+implementation.Portability Tip1.21.10HistoryofJava?Java?1991:Sun Microsystems?Green project?1995:Sun Microsystems?Formally announcedJava attrade show?Web pageswith dynamicand interactivecontent?Develop largescale enterpriseapplications?Enhance functionalityof webservers?Provide applicationsfor consumerdevices?Cell phones,pagers,personal digitalassistants,1.11FORTRAN,COBOL,Pascal andAda?FORTRAN?FORmula TRANslator?19541957:IBM?Complex mathematicalputations?Scientific andengineering applications?COBOL?COmmon BusinessOriented Language?1959:puter manufacturers,government andindustrial puterusers?Precise andefficient manipulationof largeamounts ofdata?Commercial applications1.11FORTRAN,COBOL,Pascal andAda?Pascal?Prof.Niklaus Wirth?Academic use?Ada?Developed underthe sponsorshipof U.S.Department ofDefense(DOD)?Multitasking?Named afterLady AdaLovelace1.12Basic Visual Basic,Visual C+,C#and.NET?BASIC?Beginners AllPurpose SymbolicInstruction Code?Mid1960s:Prof.John Kemenyand ThomasKurtz(Dartmouth College)?Visual Basic?1991?Result ofMicrosoft Windowsgraphical userinterface(GUI)?Developed late1980s,early1990s?Powerful features?GUI,event handling,aess toWin32API,objectoriented programming,error handling?Visual Basic.NET1.12Basic VisualBasic,Visual C+,C#and.NET?Visual C+?Microsofts implementationofC+?Includes extensions?Microsoft FoundationClasses(MFC)?Common library?GUI,graphics,working,multithreading,?Shared amongVisualBasic,Visual C+,C#?.NET platform?Webbased applications?Distributed togreat varietyof devices?Cell phones,desktop puters?Applications indisparate languagescan municate1.12Basic VisualBasic,VisualC+,C#and.NET?C#?Anders Hejlsbergand ScottWiltamuth(Microsoft)?Designed specificallyfor.NET platform?Roots inC,C+and Java?Easy migrationto.NET?Eventdriven,fully objectoriented,visual programminglanguage?Integrated Development Environment(IDE)?Create,run,test anddebug C#programs?Rapid ApplicationDevelopment(RAD)?Language interoperability1.13Key SoftwareTrend:Object Technology?Objects?Reusable softwareponents thatmodel realworld items?Meaningful softwareunits?Date objects,time objects,paycheck objects,invoice objects,audio objects,video objects,file objects,record objects,etc.?Any nouncanberepresented asan object?More understandable,better organizedand easierto maintainthan proceduralprogramming?Favor modularity?Software reuse?Libraries?MFC(Microsoft FoundationClasses)?Rogue Wave1.13Key SoftwareTrend:Object TechnologyExtensiveclass librariesof reusablesoftwareponentsare availableover theInterand theWorldWideWeb.Many ofthese librariesare availableat nocharge.Software EngineeringObservation1.31.13Key SoftwareTrend:Object TechnologyReuseof existingclasses whenbuilding newclasses andprograms savestime,money andeffort.Reuse alsohelps programmersbuild morereliable andeffective systems,because existingclassesandponents oftenhave gohrough extensivetesting,debugging andperformance tuning.Software EngineeringObservation1.41.14Typical C+Development Environment?C+systems?Programdevelopment environment?Language?C+Standard Library1.14Typical C+Development EnvironmentPhasesofC+Programs:1.Edit2.Preprocess3.Compile4.Link5.Load6.Execute1.14Typical C+DevelopmentEnvironment?Input/output?cin?Standard inputstream?Normally keyboard?cout?Standard outputstream?Normally puterscreen?cerr?Standard errorstream?Display errormessages1.14TypicalC+Development EnvironmentErrorslike divisionby zeroour asa programruns,so theyare calledruntime errorsor executiontime errors.Fatal runtimeerrors causeprograms toterminate immediatelywithout havingsuessfully performedtheir jobs.Nonfatal runtimeerrors allowprograms torun topletion,often producingincorrect results.Note:On somesystems,dividebyzero isnot afatal error.Please seeyour systemdocumentation.Common ProgrammingError1.11.15Notes AboutC+andC+How toProgram,5/e?Book gearedtoward noviceprogrammers?Stress programmingclarity?C andC+are portablelanguages?Portability?C andC+programs canrun onmany different puters?Compatibility?Many featuresof currentversions ofC+not patiblewith olderimplementations1.15Notes AboutC+andC+How toProgram,5/eWrite yourC+programs ina simpleand straightforwardmanner.This issometimes referredto asKIS(“keep itsimple”).Do not“stretch”the languageby tryingbizarre usages.Good ProgrammingPractice1.11.15Notes AboutC+andC+How toProgram,5/eAlthough itis possibleto writeportable programs,there aremany problemsamong differentCandC+pilers anddifferentputersthat canmake portabilitydifficult toachieve.Writing programsinCandC+does notguarantee portability.The programmeroften willneed todeal directlywith pilerand putervariations.As agroup,these aresometimes calledplatform variations.Portability Tip1.31.15Notes AboutC+andC+How toProgram,5/eRead themanuals forthe versionofC+you are using.Refer tothese manualsfrequently tobe sureyou areaware ofthe richcollection ofC+features andthat youareusingthem correctly.Good ProgrammingPractice1.21.15NotesAboutC+andC+How toProgram,5/eYour puterand pilerare goodteachers.If afterreading yourC+language manual,you stillare notsure howa featureofC+works,experiment usingasmall“test program”and seewhat happens.Set yourpiler optionsfor“maximum warnings.”Study eachmessage thatthe pilergenerates andcorrect theprograms toeliminate themessages.Good ProgrammingPractice1.31.16TestDriving aC+Application1.16TestDriving aC+Application1.16TestDriving aC+Appl
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- Hydroxynorketamine-d6-hydrochloride-生命科学试剂-MCE
- Hexanoyl-coenzyme-A-R-Hexanoyl-CoA-生命科学试剂-MCE
- HDAC6-ligand-Linker-Conjugate-1-生命科学试剂-MCE
- 2025安徽阜阳市颍州区教育局面向本区教育系统选调专职教研员6人模拟试卷及一套参考答案详解
- GM1-Sphingosine-d18-1-生命科学试剂-MCE
- 2025广东深圳市宝安区鹏晖中英文学校急聘生物教师1人考前自测高频考点模拟试题及答案详解(考点梳理)
- 2025年动力转向泵项目发展计划
- 安全培训效果确认表课件
- 2025年数字化X射线机合作协议书
- 销售合同中常见的法律纠纷
- 急诊科岗位职责
- 中国服用过兴奋剂运动员名单 兴奋剂真的是毒品吗
- 小学英语语法时态讲解与归纳
- 《生存与修炼》熊厚音讲《道德经》教学文案
- 淘宝新店运营计划书文献
- 产教融合校企合作[可修改版ppt]课件
- ICH Q6B 生物技术产品和生物制品的检验方法和可接受标准
- 12贮水花盆案例总结-2015天津中心修改43
- (精心整理)六方最密堆积空间利用率和密度的计算
- 练习太极拳的三个阶段
- 华为供应商质量管理体系考察报告(全)
评论
0/150
提交评论