資源描述:
《ww王曉紅——《delphi》實(shí)驗(yàn)指導(dǎo)書(shū)》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在工程資料-天天文庫(kù)。
1、《Delphi》雙語(yǔ)實(shí)驗(yàn)指導(dǎo)書(shū)王曉紅主編河北科技大學(xué)信息科學(xué)與工程學(xué)院2007.5實(shí)驗(yàn)(1)GettingStartedwithDelphi實(shí)驗(yàn)(2)MoreonPascal實(shí)驗(yàn)(3)TheDelphiIDEExplored實(shí)驗(yàn)(4)TheVisualComponentModel實(shí)驗(yàn)(5)WorkingwiththeFormDesignerandtheMenuDesigner實(shí)驗(yàn)(6)VCLComponents實(shí)驗(yàn)(7)CreatingApplications;Projects,theCodeEditorandtheCodeExpl
2、orer實(shí)驗(yàn)(8)DebuggingYourApplications;DelphiToolsandOptions實(shí)驗(yàn)(9)BuildingDatabaseForms;BuildingDatabaseApplications實(shí)驗(yàn)(1)GettingStartedwithDelphi實(shí)驗(yàn)?zāi)康模和ㄟ^(guò)幾個(gè)DelphiApplication來(lái)熟悉Delphi集成化開(kāi)發(fā)環(huán)境。實(shí)驗(yàn)內(nèi)容:通過(guò)幾個(gè)簡(jiǎn)單的Dephi程序來(lái)熟悉DelphiIDE環(huán)境。實(shí)驗(yàn)環(huán)境:操作系統(tǒng):Windows2000開(kāi)發(fā)環(huán)境:Delphi7.0實(shí)驗(yàn)步驟:1?WriteaWind
3、owsprogramthatdisplaysthewordsWelcometoDelphi!onthewindowwhentheprogramruns.2.Rewritetheprogramyouwroteinstep1andchangethedisplayedtexttoHelloThere!(Hint:YouhavetochangeonlytheCaptionpropertyoftheLabelcomponent.)3.Writeaprogramthatdeclarestwovariablesandassignvaluestot
4、hosevariables.Multiplythetwonumberstogetheranddisplaytheresultonthescreen.4.Writeaprogramthatassignsthestring,"Thereareeggsinadozen/1toavariableandtheninsertsthestringn12nattheappropriateplaceinthestring.Showtheresultinalabel.5.Writeaprogramthatcreatesthefinalresultstr
5、inginexercise4,butformattedwiththeFormatfunction.實(shí)驗(yàn)報(bào)告:1.實(shí)驗(yàn)?zāi)康?.實(shí)驗(yàn)內(nèi)容3.實(shí)驗(yàn)方法(1)將實(shí)驗(yàn)要求用Delphi語(yǔ)言編寫并調(diào)試運(yùn)行。(2)查看運(yùn)行結(jié)果,如果結(jié)果不正確,進(jìn)行修改,直到正確為止。4.實(shí)驗(yàn)總結(jié)1)編譯、連接、運(yùn)行不成功的操作情況,分析原因,改止的過(guò)程。1)實(shí)驗(yàn)中的問(wèn)題和提高。2)收獲與體會(huì)。實(shí)驗(yàn)(2)MoreonPascal實(shí)驗(yàn)?zāi)康模和ㄟ^(guò)設(shè)計(jì)幾個(gè)程序來(lái)掌握基木的Pascal語(yǔ)法。實(shí)驗(yàn)內(nèi)容:通過(guò)Testi、Test2之間的互調(diào)熟悉Pascal中的procedur
6、eo實(shí)驗(yàn)環(huán)境:操作系統(tǒng):Windows2000開(kāi)發(fā)環(huán)境:Delphi7.0實(shí)驗(yàn)步驟:1?WriteaprocedurecalledTest2thatchangesthecaptionofaLabelcomponent.Putabuttononaformandhavethebutton'sOnClickhandlercalltheTest2procedure.2.Taketheprogramfromexercise1andcreateanotherprocedurecalledTestithat,inturn,callstheTest
7、2procedure.ChangetheeventhandlerofthebuttonsothatitcallsTestiratherthanTest2.3.CreateaprogramthatdisplaysIwillnevertalkbacktomymother20timesinaMemocomponent.4.Writearecordcontainingfieldsrepresentingemployeeinformation.Includefirstname,lastname,address,hiredate,andafie
8、ldindicatingwhethertheemployeeisinthecompany'sinsuranceplan.實(shí)驗(yàn)報(bào)告:1.實(shí)驗(yàn)口的2.實(shí)驗(yàn)內(nèi)容3.實(shí)驗(yàn)方法(1)將實(shí)驗(yàn)要求用Delphi語(yǔ)言編寫并調(diào)試運(yùn)行。(2)查看運(yùn)行結(jié)果