So i came up with this solution to the reflect function. It seems to properly reflect all the images but i'm getting all errors on check50. Trying to figure out what went wrong. We are encouraged to use the swap function but i thought this solution was easier.
// Reflect image horizontally void reflect(int height, int width, RGBTRIPLE image[height][width]) { RGBTRIPLE buffer[height][width]; for (int i = 0; i < height; i++) { for (int j = 0; j < width; j++) { buffer[i][j] = image[i][j]; } for (int j = 0; j < width; j++) { image[i][j] = buffer[i][width - j]; } } return; }