ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1038. Spell Checker

I use Pascal for Spell Checker problem how can i read input , show me some sample code please
Posted by Badd 9 Jan 2002 18:58
Re: I use Pascal for Spell Checker problem how can i read input , show me some sample code please
Posted by Ivan Georgiev 9 Jan 2002 20:36
Read characters;
Use EOF (Input) to see if you have reached the end of the input.
Re: I use Pascal for Spell Checker problem how can i read input , show me some sample code please // how about EOF? i use this code and i got crash help me please.
Posted by Badd 10 Jan 2002 09:15
> Read characters;
> Use EOF (Input) to see if you have reached the end of the input.
>

var ctemp : char;
begin
   read(ctemp);
   while (ctemp<>#0) do
      begin
         check;
         read(ctemp);
      end;
end.
Re: I use Pascal for Spell Checker problem how can i read input , show me some sample code please // how about EOF? i use this code and i got crash help me please.
Posted by Ivan Georgiev 10 Jan 2002 18:32
While not EOF (Input) Do
 Begin
  While not EoLn (Input) Do
   Read(c);
  Readln;
 End;

This should help.

Good luck.