We are having some problems with the test suite in lab3: when
interpreting the file good11.cc, our interpreter reads the value 1
(the first) but after, he gets "null" as input value (and hence cannot
apply the expression x=ReadInt() ).
We use a basic BufferedReader in java. Did anyone see this error also?
Or have any ideas on the subject?
Thanks in advance.
On 4 mar, 17:46, Raphaël Vandon <vand...@gmail.com> wrote:
> If you create a new buffer each time you meet the readX function, then the
> problem is here. You should create only one buffer, otherwise the first one
> eats all the input and then is discarded.
>
> 2010/3/4 Alexis Vanacker <alexvanac...@gmail.com>