My code seemed to work pretty well untill I ran check50. I then tried to rewrite it making a copy of the image used as input (something like RGTRIPLE TMP[height][width]; TMP[x][y] = image[x][y]) and it seemed to solve the problem, but I don't quite understand why that works... Can anyone explain the logic behind this?

You must log in to answer this question.

Browse other questions tagged .