The code I have written so far does not display anything like what a mandelbrot looks like.
The assignment instructions are to write a program that creates a 512x512-pixel mandelbrot image in ppm format.
The program should accept three doubles as input from a file called "mandelinput.txt": Re0, Im0, and Re1. Im1 should be calculated as Im0 + (Re1-Re0) (i.e.,it should generate a square mandelbrot image).
The code I have is as follows, can anyone please tell me what the hell I am doing?