Code: Alles auswählen
Program Example85;
{ Program to demonstrate the SetLength function. }
Var S : String;
begin
FillChar(S[1],100,#32); // Gibt Speicherferletzung
Setlength(S,100);
Writeln ('"',S,'"');
end.
Code: Alles auswählen
Program Example85;
{ Program to demonstrate the SetLength function. }
Var S : String;
begin
Setlength(S,100);
FillChar(S[1],100,#32);
Writeln ('"',S,'"');
end.