I think graphics.h is a part of Borland Turbo C++. It does not come with MS Visual studio. You could install Turbo C++ 3.0 etc to compile the code. Also you could port it to gcc to run on *nix based systems: http://www.sandroid.org/TurboC/[^]
this is this.