I run my code and it complies and provides a (kind of) reflected image. It breaks the image in half and mirrors it instead of just reflecting. My goal was to switch the place of each pixel in the row, but my logic must be off. I've looked around and noticed some people recommend dividing the width in half, but I can't understand why that would help.
thanks
void reflect(int height, int width, RGBTRIPLE image[height][width])
{
// literally just reflect bro
for (int i = 0; i < height; i++)
{
for (int j = 0; j < width; j++)
{
image [i][j] = image [i][(width -1) - j];
}
}
return;
}