MS VC compiler does not support BGI graphics and so it does not have the graphics.h file.

You need to use the old days Turbo C++ 3.0 compiler for the BGI graphics program to compile