Well if you're happy with 640x480 resolution and 16 colours, then you'll need
- https://www.dosbox.com/
- Some copy of TurboC (I've no idea if this is legit free anywhere, try Borland's museum).
M$ pretty much gave up trying to support DOS some 20 years ago, so chances of getting 16-bit code to work on your shiny new OS are slim to zero.
But if you want to live in the 21st century, then https://www.libsdl.org/ is a good place to start.
Sorry for the long collection of random responses.
For a working graphics.h library on windows, google "duthomhas github WinBGIm". It comes with two example programs and a batch file to help you compile stuff.
For further documentation and help, google "winbgim documentation" and you'll get the university's site.
To use an image, as noted above, you must first call the readimagefile() function to get it on the window. Then you must use imagesize() to get the memory you need to malloc(), then getimage() to save it in that memory. After that you can use putimage() to draw the image anywhere you want.
Remember, Google is your friend for examples.
BGI graphics are very old, but very easy to use as well.
Good luck!
ARgggggggggg i wishhhhhhhhhh i learnnnnnnnnnn lot of stuff
btw thanksssssss alottt
Andddddddddd im having trouble
with that , (the set up or idnnuo part, the part ineed to do with files of win Coz when i try some code for arc, or coundown it doesnt appear on screen )
i Dont know theeee thing is all related thing about grphics.h is 4 years ago
andddd its for hard to me im just a beginner i dont understand stuff i just rely in Youtube and to all of you answering me
Sometimes i dont know how to ask because i dont know the right term for what im asking