数组record:array[1..10] of string;
它记录的是日期编号
怎么得到这个数组中最小的值
最好写出比较完整的代码
它记录的是日期编号
怎么得到这个数组中最小的值
最好写出比较完整的代码
解决方案 »
- 求完整的DLL 封装非模式窗体方法续(100)simonhehe接分
- delphi中如何根据ip地址打开一个网页?
- 请老师帮忙,问个 Vclzip 的问题
- 用WebBroker开发Internet的问题。
- Metafile是什么类型的文件,扩展名是什么?该文件可以用在那些方面?有什么优势?多劳多得!来者有分!
- 怎样返回应用程序所在路径,不包括文件名
- 请问delphi5.0可以在windows xp上使用吗
- 这个问题比较特别!
- RegisterClass 是做什么用的?有什么意义?
- 报表统计问
- 请问怎么引用父窗口
- 用delphi如何屏蔽alt+tab,ctrl+alt+del,ctrl+esc这三个组合功能键,并且如果屏蔽windows的任务栏和开始菜单?
for j:=1 to i do begin
if record[j] > record[j+1] then
begin
t = record[j];
record[j] = record[j+1];
record[j+1] = t;
end;min := record[10];
var
index:integer;
temp:string;temp:=record[1];
for i:=1 to 9 do
begin
if strtodate(temp) < strdte(record[i+1]) then
begin
index = i;
end
else
begin
temp:=record[i+1];
index = i+1;
end;
end;
var
index: integer;index:=1;
for i:=2 to 10 do
if strtodate(record[index]) < strtodate(record[i]) then
index = i;index 就是最小的记录号