var a,b,c:integer;
begin
A:=STRTOINT(EDIT1.TEXT);
B:=STRTOINT(EDIT2.TEXT);
C:=STRTOINT(EDIT3.TEXT);
IF A>B THEN
BEGIN
IF A>C THEN
BEGIN
IF B>C THEN
BEGIN
LABEL1.Caption:=INTTOSTR(A);
LABEL3.Caption:=INTTOSTR(B);
LABEL5.Caption:=INTTOSTR(C);
end
else
begin
LABEL1.Caption:=INTTOSTR(A);
LABEL3.Caption:=INTTOSTR(c);
LABEL5.Caption:=INTTOSTR(b);
end
end
else
begin
LABEL1.Caption:=INTTOSTR(c);
LABEL3.Caption:=INTTOSTR(a);
LABEL5.Caption:=INTTOSTR(b);
end
end
else
if b>c then
begin
if a>c then
begin
LABEL1.Caption:=INTTOSTR(b);
LABEL3.Caption:=INTTOSTR(a);
LABEL5.Caption:=INTTOSTR(c);
end
else
begin
LABEL1.Caption:=INTTOSTR(b);
LABEL3.Caption:=INTTOSTR(c);
LABEL5.Caption:=INTTOSTR(a);
end
end
else
begin
LABEL1.Caption:=INTTOSTR(c);
LABEL3.Caption:=INTTOSTR(b);
LABEL5.Caption:=INTTOSTR(a);
end;
///////////////最後出錯[Error] Unit1.pas(51): Undeclared identifier: 'LABEL5'
///////////[Error] Unit1.pas(58): Missing operator or semicolon//