Delphi题求助!谢谢了!!

[复制链接]
查看11 | 回复1 | 2008-12-23 20:35:41 | 显示全部楼层 |阅读模式
1.var i:shortint
Begin
i:=high(shortint);
write(‘I=’,I);
End;
结果输出:(

2.functioncheck(n.k:Integer)Integer
Var m:integer
Begin
Repeat
m:=n.mod 10;
n:=n.div 10;
k=k-1;
until k=0;
check:=m;
End
若调用语句y=check(3725.3),最后运行y值为:(

3.Type
Mycolor=(red=1,white=15,black=20)
Var I.=mycolor
Begin
L:=black
writeln(‘black is’,ord(L));
end.
最后输出结果:black is______
4.Var a:array[1.10]of integer;
K,I: integer;
程序段
K=1;
For.1:=1to10do.
If a<a[k] then
K=1;
Writen(a[k])
执行后输出的是数组中的_____

回复

使用道具 举报

千问 | 2008-12-23 20:35:41 | 显示全部楼层
自己把代码执行一下不都知道结果了?...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行