Below is part of a program I wrote in Microsoft Visual Studios using C++ and OpenGL/Glut, which displays the Mandelbrot Set and has the ability to pop/push a stack as to zoom out/in.