There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
That is simple to see if we know it, but it is a potentially very serious error.Michel ten Voorde wrote:There are two problems with your code, and one of them is trivial. Hint: line 19. . . .
Michel ten Voorde wrote:There are two problems with your code, and one of them is trivial. Hint: line 19.
Furthermore, try to understand what happens inside the if-branch (at line 9). Something is missing.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
You will always be treated with dignity. Now, strip naked, get on the probulator and hold this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|