?? test.pas
字號:
unit test;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Math;
type
TfrmTest = class(TForm)
Edit1: TEdit;
Edit2: TEdit;
Edit3: TEdit;
Edit4: TEdit;
Button1: TButton;
Label1: TLabel;
Label2: TLabel;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
frmTest: TfrmTest;
implementation
uses GpsFunc;
{$R *.dfm}
procedure TfrmTest.Button1Click(Sender: TObject);
var
sLat,sLon,tLat,tLon,El: double;
begin
sLon := DegToRad(StrToFloatDef(Edit1.Text,0));
sLat := DegToRad(StrToFloatDef(Edit2.Text,0));
tLon := DegToRad(StrToFloatDef(Edit3.Text,0));
tLat := DegToRad(StrToFloatDef(Edit4.Text,0));
Label1.Caption := FloatToStr(Dists(sLon,sLat,tLon,tLat,El));
Label2.Caption := FloatToStr(El);
end;
end.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -