Hilohi Gabriel wrote:
while s <> " " do
and s was s:string[1000]
The following works for me:
Program Test;
Var S: String [ 1000 ];
begin while S <> " " do S:= " "; end.
However ...
Do i have to say while s <> ' ' ???
... yes. Pascal strings are in ''; GPC accepts "" as an extension. Better use ''.
You know that ' ' (or " ") is a string that contains a space? The empty string is '' (or "").
Hope this helps,
Peter