You could be dodging a bullet here. graphics.h is the interface for a library that is so old (1980s) that getting it running on on a modern PC with modern tool can take serious effort. People have gone to the effort and there have been some good successes (
winbgim from 2005, also not likely to work anymore, and
SDL-bgi which is still active). The best advice I have is use something that's used by modern day professional programmers because that's more useful to you going forward. —
user4581301 12 secs ago