unit1.~pas

来自「Delphi函数参考大全的CD」· ~PAS 代码 · 共 40 行

~PAS
40
字号
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, Math;

type
  TForm1 = class(TForm)
    Button1: TButton;
    Edit1: TEdit;
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
var
  x,i: Integer;
  arr: array  [0..4] of Double;
begin
  x := 10;
  For i :=0 to Length(arr)-1 do
    arr[i]:= i*2;
  Edit1.Text := FloatToStr(Poly(x,arr));
  //arr[0]+arr[1]*10^1+arr[2]*10^2+arr[3]*10^3+arr[4]*10^4
end;

end.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?