I have a problem about booleans. if 'begin' and 'eind' are true, then checker must be true too. But it isn't. what is the problem?
'aantalp' is a integer variable declared in the private section of the class
'maten' is a two-dimensional array, containing char arrays
'eenheden' is a one-dimensional array, containing floats
The output of this function will depend on the result of the last comparison of the for loop.
By that I mean, if count goes from 0 to 16 - then the setting of eind and begin
for count of 0 - 15 will have no effect on the result.
It is only the setting of eind and begin in the last iteration of the loop that will be used
to determine the value of checker .
This is because all the iterations of the loop are run.
I'm guessing that maybe you need to exit the loop and return true the first time both eind and begin becomes true and if you go all the way through the iterations of the loop, then return false.
Maybe this is what your loop should look like (it is just a guess):