i agree with ancient dragon i had to use dev c++ but there are a lot better compilers out there. if you need to use dev-c++ like i had to there are some tutorials out there.
this first one will help you set up the borland graphics interface with dev-c++. just scroll down till it says "How do I use Borland Graphics Interface (graphics.h)?" this will give you the specific libraries you will need to download to add to enable graphics with dev-c++
this second one is the tutorial that i used to get me started off. its great and should be a lot of help. the difference between using dev-c++ and other newer compilers is that you will have to manually add code to the resources page. this tutorial explains this all.