: : : *scratches his head* ummm....say what???
: :
: : Im not sure what kind of reply you expect to that. You said in your original message that you were having problems with the do..while loop, so I gave you two examples showing the two different looping styles, and then an example that applies to your program.
: :
:
:
: heh...alright...umm...what i don't get is that infile, outfile, eOF stuff...what is all that??
:
EOF you can lookup in the help file, InFile and OutFile are just variable names. Here are some more basic examples:
I := 1;
while (I <= 10) do
begin
WriteLn(I);
I := I + 1;
end;
I := 1;
repeat
WriteLn(I);
I := I + 1;
until (I > 10);
You'll see both of these loops do the exact same thing. Another example to see how they differ would be:
I := 100;
while (I <= 10) do
begin
WriteLn(I);
I := I + 1;
end;
I := 100;
repeat
WriteLn(I);
I := I + 1;
until (I > 10);
Nothing has changed here except the starting value of I, but this time you will see the first loop does not print anything because the evaluation happens up front, while the second loop prints the number 100 and then stops because the evaluation is made at the end.