[fpc-pascal] Read() for multiple variables.
    zaher dirkey 
    parmaja at gmail.com
       
    Tue Apr  1 23:36:41 CEST 2008
    
    
  
I am old pascal programmer, but now i teaching pascal and need to understand
the old input
program readtest;
var
  x:integer;
  y:integer;
  s:string;
begin
  read(x, y, s);
  writeln();
  writeln(x,y,'"',s,'"');
  readln;
end.
-------------
10 50 Hello
how to use read() procedure to read multiple variable one of them is string
type
in example above it read x, y correclty, but variable s take a first space
before the text.
How i can manage to read the string after integer with simple read?.
-- 
Zaher Dirkey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20080401/ab1db182/attachment.html>
    
    
More information about the fpc-pascal
mailing list