<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>九月星空 &#187; Code</title>
	<atom:link href="http://blog.beyonding.com/category/code/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.beyonding.com</link>
	<description>初恋总错过,有情歌说过,全是没有结果...</description>
	<lastBuildDate>Fri, 30 Sep 2011 04:08:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>DELPHI复习笔记[三]</title>
		<link>http://blog.beyonding.com/delphirev3.ooxx</link>
		<comments>http://blog.beyonding.com/delphirev3.ooxx#comments</comments>
		<pubDate>Sat, 05 Apr 2008 12:34:24 +0000</pubDate>
		<dc:creator>风飏</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Delphi]]></category>

		<guid isPermaLink="false">http://www.beyonding.com/blog/?p=129</guid>
		<description><![CDATA[[补] 布尔型:Boolean 只包含true或False两个值,占用1字节内存. 字符型:Char 一个ASCII字符. 字符串类型:String 一串最长可达255个ASCII字符. 指针型:Pointer 可以指向任何特定类型. 字符串型:PChar 是一个指向以零结尾的字符串的指针.&#160; 列表中字符串处理函数 indexof(字符串) 返回列表中字符串出现的位置,如无返回-1. ---例:FileListBox1.Items.IndexOf('AUTOEXEC.BAT') &#62; -1. add(字符串)把字符串加至列表尾部. insert(位置,字符串)在列表指定列添加字符串. move(原位置,新位置)在列表中移动指定列的字符串到一个新位置. delete(位置)删除指定位置列的字符串.如果清空所有列表就用clear方法. 复制列表:把一个列表复制到另一个列表. ---例:memo.Lines:=ComboBox1.Items. 添加列表:把一个列表添加到另一个列表尾部使用addstrings方法. ---例:memo.Addstrings(ComboBox1.Items). Modified&#160; 属性 用以标识数据是否被改变. SelectAll 方法 选中部件的全部文本. Selstart&#160; 属性 返回选中文本的开始位置. SelText&#160;&#160; 包含着被选中的文本. SelLength 属性 返回选中文本的长度. Execult&#160;&#160; 方法 来显示对话框. 图形图像编程 1.TCanvas对象的方法 Arc(x1,y1,x2,y2,x3,y3,x4,y4 : Integer); Arc方法在椭圆上画一段弧，椭圆由(x1,y1),(x2,y2) 两点所确定的椭圆所决定.弧的起点是椭圆圆周和椭圆中心与(x3,y3)连线的交点.弧矩形终点是椭圆圆周和椭圆中心与(x4,y4)连线的交点,以逆时针方向画弧. Chord(x1,y1,x2,yx,x3,y3,x4,y4 : Integer); Chord方法连接椭圆上的两点,椭圆由(x1,y1),(x2,y3)两点所确定的矩形决定,(x3,y3)是始点,(x4,y4)是终点. Ellips(x1,y1,x2,y2 : [...]]]></description>
		<wfw:commentRss>http://blog.beyonding.com/delphirev3.ooxx/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>DELPHI复习笔记[二]</title>
		<link>http://blog.beyonding.com/delphirev2.ooxx</link>
		<comments>http://blog.beyonding.com/delphirev2.ooxx#comments</comments>
		<pubDate>Sun, 30 Jul 2006 17:54:00 +0000</pubDate>
		<dc:creator>风飏</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Delphi]]></category>

		<guid isPermaLink="false">http://localhost/?p=96</guid>
		<description><![CDATA[简单语句:不包含任何别的语句.赋值语句和过程调用就是简单语句的例子.简单语句用分号隔开. 复合语句:将简单语句用begin和end;括起来即组成复合语句.end之前的最后一条语句末尾分号不是必须的. &#160;单个分号是一个空语句,空语句可用在循环体或其他特殊情况中. 赋值语句:操作符:= 而 = 在Pascal中用作关系运算符来判断是否相等. 条件语句:分为if语句和case语句. &#160;要注意的是if-then-else是单纯的一条语句 因此不能在语句中间加分号. &#160;case语句可以代替复杂的if语句,包括用来选值的表达式,可能值序列.case语句最后可以带一个else语句. 循环语句:包括for,while和repeat语句. &#160;pascal中的for循环语句较其他语言灵活性比较小,因为它步长只能为1.for语句的循环计数器必须非是数字,可以是任何有序类型的值. &#160;&#160;&#160;&#160;&#160;&#160;&#160; while-do语句和repeat-until语句的不同点在于前者是先判断后执行,后者先执行后判断,因此至少要执行一次. &#160;1.while 条件 do 执行语句.&#160;2.repeat 执行语句 until 条件(repaet的条件满足时循环终止 和while-do相反). &#160;用Break中断循环;Continue跳出此循环进入下一个循环.还有系统过程Exit和Halt可以立即从函数或过程中返回或者终止程序. With语句:是一种用于简化代码访问记录类型变量(或对象)的语句. &#160;如var BirthDay: Date; &#160;begin &#160;BirthDay.Year := 1997; &#160;end; &#160;可以用 with 语句改进后半部分代码,如下： &#160;begin &#160;with BirthDay do &#160;begin &#160;Year := 1995; &#160;end; &#160;end; &#160;当用对象使用到With时,可以简写代码 如: 1.&#160;with Form1.Canvas.Pen do &#160;begin &#160;Width := 2; [...]]]></description>
		<wfw:commentRss>http://blog.beyonding.com/delphirev2.ooxx/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DELPHI复习笔记[一]</title>
		<link>http://blog.beyonding.com/delphirev1.ooxx</link>
		<comments>http://blog.beyonding.com/delphirev1.ooxx#comments</comments>
		<pubDate>Sat, 29 Jul 2006 18:20:00 +0000</pubDate>
		<dc:creator>风飏</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Delphi]]></category>

		<guid isPermaLink="false">http://localhost/?p=97</guid>
		<description><![CDATA[Pascal由瑞士苏黎士理工学院的尼古拉斯-沃斯(Niklaus Wirth)教授在1971年设计. 1983 年 Borland 公司推出了世界闻名的 Pascal 编译器 -- Turbo Pascal. 1995 年 Borland 发布了 Delphi ，使 Pascal 成为一种可视化编程语言. Pascal的注释分为多行注释{.......}或(*......*) 和单行注释 //....... 如果是{$......}则为编译指令,实际上编译指令仍是注释. 在写代码时输入缩略代码后用代码模板(CTRL+J)完整的代码就出现了. 变量声明Var, 常用类型Integer String Boolean. 在声明变量时可以直接赋初值,格式为Value: Integer = 10 但只能用于全局变量. 常量声明Const, 声明常量不必特定数据类型,但需要赋一个初值,编译器会根据所赋初值自动选用合适的数据类型. 格式 pi=3.14; 字符串常量可以用resourcestring来声明,格式name='matian';这样声明的好处是可以在用编辑器 打开可执行文件时会看到此定义的字串符,这意味着字串符并没有进入编译代码,而是保存在可执行文件的一个单独区域. 这样采用资源的好处是可以不用更改源代码就可以更改字符内容(例如翻译成不同的语言). 整数类型ShortInt(1字节 无符号值域2^8),SmallInt(2字节 无符号值域2^16),LongInt(4字节 无符号值域2^32), Int64(8字节 2^64),Integer(2/4字节 值域Cardinal 范围和16/32位平台有关). 函数SizeOf(Integer)求此类型所占字节大小,High()和Low()分别求此类型值域的最高最低值. 布尔类型Boolean(TRUE为1,FALSE为0),还有特殊布尔类型ByteBool WordBool LongBool用于WINAPI函数. 字符类型有两种不同的表示法:ANSIChar 和 WideChar, [...]]]></description>
		<wfw:commentRss>http://blog.beyonding.com/delphirev1.ooxx/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>『整理』魔力宝贝Bin文件格式&amp;图像压缩格式(下)</title>
		<link>http://blog.beyonding.com/cgbin2.ooxx</link>
		<comments>http://blog.beyonding.com/cgbin2.ooxx#comments</comments>
		<pubDate>Fri, 14 Jul 2006 10:20:00 +0000</pubDate>
		<dc:creator>风飏</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[魔力宝贝]]></category>

		<guid isPermaLink="false">http://localhost/?p=99</guid>
		<description><![CDATA[四．压缩算法 这是JSS自定的一种Run-Length算法，用于StoneAge和CrossGate，下面是说明： &#160; 首字节(00) 01 02 03 说明 0n String 　 　 长度为n的字符串 1n m String 　 长度为n*0x100+m的字符串 2x y z String 长度为x*0x10000+y*0x100+z的字符串 8n X 　 　 填充n个X 9n X m 　 填充n*0x100+m个X Ax X y z 填充x*0x10000+y*0x100+z个X Cn 　 　 　 填充n个背景色 Dn m 　 　 填充n*0x100+m个背景色 Ex y z 　 填充x*0x10000+y*0x100+z个背景色 比如，C9表示填充9个背景色，D1 10表示填充0x110个背景色，12 [...]]]></description>
		<wfw:commentRss>http://blog.beyonding.com/cgbin2.ooxx/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>『整理』魔力宝贝Bin文件格式&amp;图像压缩格式(上)</title>
		<link>http://blog.beyonding.com/cgbin1.ooxx</link>
		<comments>http://blog.beyonding.com/cgbin1.ooxx#comments</comments>
		<pubDate>Fri, 14 Jul 2006 10:06:00 +0000</pubDate>
		<dc:creator>风飏</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[魔力宝贝]]></category>

		<guid isPermaLink="false">http://localhost/?p=100</guid>
		<description><![CDATA[下文分析了CrossGate(魔力宝贝)的文件格式，因为StoneAge(石器时代)和它差不多(最初均为同一小组作品)，所以一并介绍。 原文作者为梦见草，由野风信子整理和完善。 &#160; 一．图片数据 图片地址文件 CrossGate GraphicInfo*_*.bin StoneAge Adrn_*.bin 这个文件存放了图片的地址索引，由若干个大小一样的块组成，每个块长度为40字节(StoneAge为80字节)，格式如下： 字段类型 内容 说明 字节 LONG 序号; 图片的编号 4 DWORD 地址; 指明图片在数据文件中的起始位置 4 DWORD 块长度; 图片数据块的大小 4 LONG 偏移量X; 显示图片时，横坐标偏移X 4 LONG 偏移量Y; 显示图片时，纵坐标偏移Y 4 LONG 图片宽度; ... 4 LONG 图片高度; ... 4 BYTE 占地面积-东; 占地面积是物件所占的大小，1就表示占1格 1 BYTE 占地面积-南; 同上 1 BYTE 标志; 用于地图，0表示障碍物，1表示可以走上去 1 BYTE[5] [...]]]></description>
		<wfw:commentRss>http://blog.beyonding.com/cgbin1.ooxx/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

