欢迎来到天天文库
浏览记录
ID:46847848
大小:78.50 KB
页数:20页
时间:2019-11-28
《ww王晓红——《delphi》实验指导书》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、《Delphi》双语实验指导书王晓红主编河北科技大学信息科学与工程学院2007.5实验(1)GettingStartedwithDelphi实验(2)MoreonPascal实验(3)TheDelphiIDEExplored实验(4)TheVisualComponentModel实验(5)WorkingwiththeFormDesignerandtheMenuDesigner实验(6)VCLComponents实验(7)CreatingApplications;Projects,theCodeEditorandtheCodeExpl
2、orer实验(8)DebuggingYourApplications;DelphiToolsandOptions实验(9)BuildingDatabaseForms;BuildingDatabaseApplications实验(1)GettingStartedwithDelphi实验目的:通过几个DelphiApplication来熟悉Delphi集成化开发环境。实验内容:通过几个简单的Dephi程序來熟悉DelphiIDE环境。实验环境:操作系统:Windows2000开发环境:Delphi7.0实验步骤:1•WriteaWind
3、owsprogramthatdisplaysthewordsWelcometoDelphi!onthewindowwhentheprogramruns.2.Rewritetheprogramyouwroteinstep1andchangethedisplayedtexttoHelloThere!(Hint:YouhavetochangeonlytheCaptionpropertyoftheLabelcomponent.)3.Writeaprogramthatdeclarestwovariablesandassignvaluestot
4、hosevariables.Multiplythetwonumberstogetheranddisplaytheresultonthescreen.4.Writeaprogramthatassignsthestring,"Thereareeggsinadozen/1toavariableandtheninsertsthestringn12nattheappropriateplaceinthestring.Showtheresultinalabel.5.Writeaprogramthatcreatesthefinalresultstr
5、inginexercise4,butformattedwiththeFormatfunction.实验报告:1.实验目的2.实验内容3.实验方法(1)将实验要求用Delphi语言编写并调试运行。(2)查看运行结果,如果结果不正确,进行修改,直到正确为止。4.实验总结1)编译、连接、运行不成功的操作情况,分析原因,改止的过程。1)实验中的问题和提高。2)收获与体会。实验(2)MoreonPascal实验目的:通过设计几个程序來掌握基木的Pascal语法。实验内容:通过Testi、Test2之间的互调熟悉Pascal中的procedur
6、eo实验环境:操作系统:Windows2000开发环境:Delphi7.0实验步骤:1•WriteaprocedurecalledTest2thatchangesthecaptionofaLabelcomponent.Putabuttononaformandhavethebutton'sOnClickhandlercalltheTest2procedure.2.Taketheprogramfromexercise1andcreateanotherprocedurecalledTestithat,inturn,callstheTest
7、2procedure.ChangetheeventhandlerofthebuttonsothatitcallsTestiratherthanTest2.3.CreateaprogramthatdisplaysIwillnevertalkbacktomymother20timesinaMemocomponent.4.Writearecordcontainingfieldsrepresentingemployeeinformation.Includefirstname,lastname,address,hiredate,andafie
8、ldindicatingwhethertheemployeeisinthecompany'sinsuranceplan.实验报告:1.实验口的2.实验内容3.实验方法(1)将实验要求用Delphi语言编写并调试运行。(2)查看运行结果
此文档下载收益归作者所有