|
|
back to boardPlease! I wrote Spell Checker ... While not Eoln do Begin ... {I Check It} End; Why doesn't it work? Who knows? Edited by author 07.08.2005 18:47 Hi! Try using "While (not eof(input)) do". Hello! Thank you, but it doesn't work! Hi! My program looks something like this (and it works, I just send it again to be sure): Var ch: char; p: boolean; e,c: Longint; Begin p:= true; e:= 0; c:= 0; While (not eof(input)) do begin read(input,ch); if (valid_expression) then do_something; if (valid_expression) then do_something; if (valid_expression) then do_something; if (valid_expression) then do_something else do_something_else; if (valid_expression) then do_something; end; writeln(output,e); End. Just change "valid_expression", "do_something" and "do_something_else" for the apropiate code. Edited by author 09.08.2005 22:32 while not EOF do begin read(n); .... .... .... end; Please! I wrote Spell Checker ... While not Eoln do Begin ... {I Check It} End; Why doesn't it work? Who knows? Edited by author 07.08.2005 18:47 while not EOF do begin read(n); .... .... .... end; |
|
|