摘要:
http://ce.sysu.edu.cn/hope2008/worklist/ShowArticle.asp?ArticleID=8631(转)仅以我有限的项目经验总结Delphi学习中需要注意到问题。由于我有C#基础,故此会涉及C#和Pascal语法不同之处,通用的程序套路就不多说了。该文章涉及内容深度较浅,适合初学者阅读。如有错漏请包涵。需要注意Delphi是一个IDE,它不是一个语言,它的性质和Visual Studio、Eclipse是一样的,是用来做开发的。Delphi是用Pascal做为开发语言,确切说是Object Pascal--支持面向对象的Pascal语言,当然Delph 阅读全文
摘要:
二维数组unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, DBCtrls;type queue = array[1..4, 1..20] of real; TForm1 = class(TForm) lbl1: TLabel; lbl2: TLabel; lbl3: TLabel; lbl4: TLabel; lbl5: TLabel; btn1: TButton;... 阅读全文
摘要:
Maopao排序unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, DBCtrls;type queue = array[1..200] of integer; TForm1 = class(TForm) btn1: TButton; lbl1: TLabel; edt1: TEdit; btn2: TButton; btn3: TButton; dblst1: TD... 阅读全文
摘要:
数值参数:实参的值赋给对应形参,形参的改变不影响实参unit first;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type TForm1 = class(TForm) btn1: TButton; edt1: TEdit; edt2: TEdit; procedure btn1Click(Sender: TObject); private function formalparam... 阅读全文