Ich hab ein Problem mit den double-variabeln
also ich schreib ein konsolenprogramm und das ist mein quellcode:
also ich möchte die längste Strecke herausfinden
Code: Alles auswählen
MaxAbstand:= 0.000001;
for i:=0 to Zeilenanzahl do begin
for e:=0 to Zeilenanzahl do begin
if i <> e then begin
Abstand:=Abstaende[i,e];
if Abstand > MaxAbstand then //also mein problem liegt hier
begin
MaxAbstand:=Abstaende[i,e];
Startpunkt:=i;
Endpunkt:= e;
end;
end;
end;
end;
An unhandled exception occurred at $00401F77 :
EInvalidOp : Invalid floating point operation
$00401F77 main, line 210 of project.lpr
An unhandled exception occurred at $00409772 :
EInvalidPointer : Invalid pointer operation
$00409772
$004070A5
$00407110
$004085C6
$004024A8 P$PROJECT_finalize_implicit, of project.lpr
$004089C4
$004082E9
also zeile 210 ist das hier : if Abstand > MaxAbstand then
also wäre nett wenn ihr mir helfen würdet
