if 条件表达式 then 语句1
else 语句2;
if a>b then
begin
Showmessage('a比b大');
showmessage('haha');
end//不能带分号
else
begin
Showmessage('b比a大');
showmessage('hahaha');
end;//带分号
delphi中if then else语句怎么写.举个最简单的例子
delphi中if then else语句怎么写.举个最简单的例子
其他人气:848 ℃时间:2020-05-11 02:37:36
优质解答
我来回答
类似推荐
猜你喜欢
- 1有关地球生态被破坏的资料
- 2He hardly ever eats junk food.(改为反意疑问句)
- 3俯瞰与鸟瞰有什么区别?谢谢了,大神帮忙啊
- 4植物如果缺水会怎样
- 5ome people make your life better by walking into it while other people will make your life better by simply walking out
- 6△ABC为等腰直角三角形,∠bac=90°,e为ab上任意一动点,bc=2,ce为斜边做等腰rt△cde,连接ad,
- 7他们在照相用英语怎么说
- 8断路器用什么电路符号表示
- 9将23、24、25、26、27、28、29、30、31这九个数分别填在如图的空格中,使每一横行、竖行、斜行的三个数相加的和都相等.
- 10直角三角形的一条长直角边为7.5 它对应的角是75度 求它的另一条直角边长和斜边长