如何在delphi中实现任意输入三个数,从大到小排序

来源:百度知道 编辑:UC知道 时间:2024/06/28 23:51:55
这三个数一定要排序后可以输出的

前几天看了你问题,现在自己找到了一个解决方法,有点烦:
var a, b, c, e, f : integer;
begin
a := strtoint(edit1.Text);
b := strtoint(edit2.Text);
c := StrtoInt(edit3.Text);
e := Max(a, b);
f := Max(e, c);
showmessage(inttostr(f));
end;