摘要:
在delphi中:uses Math;procedure TForm1.FormCreate(Sender : TObject);var a : Double; b : Double;begin //初始化a,b. ShowMessage(FloatToStr(Max(a,b))); end... 阅读全文
posted @ 2015-07-27 15:33
ChenYao_Freedom
阅读(596)
评论(0)
推荐(0)
摘要:
1.typecasting类型强制转化varB : Boolean;BeginB := Boolean(1);End;对于对象和接口,采用as操作符进行转化,但要先进行兼容性判断。2.Pointer指针Var A : Integer; P : PBoolean; B : Boolean; Begin... 阅读全文
posted @ 2015-07-27 14:43
ChenYao_Freedom
阅读(255)
评论(0)
推荐(0)
摘要:
TObject->TPersistent Classes,抽象类->TComponent Classes,抽象类->TControl Controls->TGraphicControl /TWinControl ControlsTObject主要定义了四种功能的虚方法1.1. 对象的构造函数和析构函... 阅读全文
posted @ 2015-07-27 14:42
ChenYao_Freedom
阅读(1085)
评论(0)
推荐(0)
摘要:
ValueMeaningfmCreate Create a file with the given name. If a file with the given name exists, open the file in write mode. fmOpenRead Open the file fo... 阅读全文
posted @ 2015-07-27 14:41
ChenYao_Freedom
阅读(1535)
评论(0)
推荐(0)
摘要:
数据类型转化1.1. 数值和字符串转化Procedure Str(X [: Width [ : Decimals ]]; var S);将数值X按照一定格式转化成字符串S。Width指定S的总长度,Decimals指定小数点后的位数。EX: Str(12.2 : 6 : 2 , S); //S=’ ... 阅读全文
posted @ 2015-07-27 14:39
ChenYao_Freedom
阅读(542)
评论(0)
推荐(0)
摘要:
虚拟方法表和动态方法表虚拟方法表VMT:一个虚拟方法表从指针所指地址的负偏移.76 处开始,长度动态分配(由虚拟方法的个数确定)。虚拟方法表被分为很多小段,每段占4 个字节,也就是众多指针。每个指针指向一个虚拟方法的入口地址。VMT可分为1) 基础信息区VMT负偏移区(-76-0)即为基础信息区。存... 阅读全文
posted @ 2015-07-27 14:38
ChenYao_Freedom
阅读(245)
评论(0)
推荐(0)
摘要:
_ClassCreate->Create->AfterConstruction(->DoCreate / OnCreate)BeforeDestruction(->DoDestroy / OnDestroy)->Destroy->_ClassDestroy 阅读全文
posted @ 2015-07-27 14:38
ChenYao_Freedom
阅读(165)
评论(0)
推荐(0)
摘要:
1.Simple:1.1.Ordinal: Integer: Integer 4byte Cardinal un_4byte Shortint 1byte Smallint 2byte Longint 4byte Int64 8byte Byte un_1byte Word un_... 阅读全文
posted @ 2015-07-27 14:36
ChenYao_Freedom
阅读(1588)
评论(0)
推荐(0)

浙公网安备 33010602011771号