All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
菜鸟学习php一个月总结_[PHP教程]
初学PHP指导:php.ini 配置详细选项_[PHP教程]
如何在十天内学会php之第一天_php资料_编程技术
IsPostBack深入分析_[Asp.Net教程]
使用javascript脚本控制网页Table的显示隐藏_JavaScript技术_编程技术
ASP.NET,MVC,Framework体验(4):控制器_[Asp.Net教程]
用.NET编写串口程序的一点心得_.net资料_编程技术
SQL,Server开发的二十一条军规_[SQL,Server教程]
SQL,Server,连接基础知识_mssql学习_编程技术
Delphi以树型显示的程序界面
Reading number is top 10 pictures
Summer is most suitable for young people to travel in China8
Black and white also sexy--YanLiu1
Extremely rare TianShan Mountains snow lotus2
China's programmers are live what kind, had a look at will know that
Take you to walk into the most true north Korea rural1
Hunan province aizhai super-large suspension bridge open to traffic and 4 world first1
Discharge accidentally Actresses by the breast4
Angie Chiu vijara myth1
BingBingFan apple dew point photo gallery1
Wild animals melee moment of life and death1
Download software ranking
XML+Web+Service开发教程
Tram sex maniac 2 (H) rar bag3
Unix video tutorial10
Kung.Fu.Panda.2
实战黑客不求人
Boxer's Top ten classic battle10
linux高级编程
Sora aoi - one of more PK
Love the forty days
尖东毒玫瑰A
aaa published in(发表于) 2014/7/19 0:14:05 Edit(编辑)
[delphi语法3]声明delphi几个常用语句方法

[delphi语法3]声明delphi几个常用语句方法

[delphi语法3]声明delphi几个常用语句方法

1.常量声明语句

常量在声明时就被赋予了一个值,在程序执行过程中是不可改变的。下面的例子声明了3 个常量:

const

Pi = 3.14159;

BookID = 362;

BookName = "Delphi";

像变量一样,常量也有类型。上文的3 个常量的类型分别是Real 型、整型、字符串型。常量用“=”

表示两边的值是相等的。

2.赋值语句

赋值语句的形式如下:

variable:=expression; //变量: = 表达式;

3.Goto 语句

Goto 语句可以从程序中的一个地方直接跳转到另一个地方。但是从结构化程序设计的角度来考

虑,尽量不要使用Goto 语句。

Goto 语句的形式如下:

goto label;

在使用Goto 语句之前,首先要声明标号。标号声明语句如下:

label label1,label2,??,labeln;

4.复合语句

首尾使用Begin 和End 包括起来的一组语句称为复合语句。复合语句可以嵌套使用,也允许有空

的复合语句。例如:

begin

c:=a;

a:=b;

b:=c;

begin

end;

end;




添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.