N
nanshan
Unregistered / Unconfirmed
GUEST, unregistred user!
function StrtoSSS(const S: string): Double;var D: Double; B: array[0..7] of byte absolute D; I: Integer;begin for I := 0 to Length(S) - 1 do B := byte(S[I + 1]); Result := D;end;function SSStoStr(const X: Double): string;var P: PByte; I: Integer; S: Integer; ii:integer;begin S := SizeOf(X); P := @X; Result := ''; for I := 0 to S - 1 do begin ii:= P^; Result := Result + Char(ii); Inc(P); endend;12345678 转回来成了 62345678 怎么解决