function total(x,y:integer):integer;
begin
  total:=x+y;
end;

procedure TForm1.BitBtn1Click(Sender: TObject);
  Var x,y,z:integer;
  begin
    x:=3;
    y:=5;
    z:=total(x,y);
    label1.Caption:=inttostr(z);
  end;

标签: none

添加新评论