tkovs/cbrainfuck

BUG in interpreter function

Closed this issue · 1 comments

tkovs commented

There is a problem in the interpreter function:
there is just "countpoint++" in the "case '.':" but
the amount of point in the input.txt is much smaller
than countpoint.

tkovs commented

The feof function read twice the last char by brainfuck code. So, when the last char by brainfuck code was a point... This is the problem.

Solved.