Ok the problem you are facing is you are trying to compile it is VC++ or some other compiler.. COmpile in in compilers like Turbo c++ ot the ones that support BGI library and thos which compile dos programs.. I think VC++ and Borland Builder have an option to compile dos programs try it...
And i learned to use BGI color library "graphics.h" by looking at the definition in the help and playing around with its functions....
Any more doubts?????