Jun 28, 2013 at 4:29pm UTC
For graphics programming in C there is a Graphics library graphics.h but what to do in C++
I am using BCC 5. Whenever i try to include graphics.h in my C++ program, it shows an error message like ''No such file''. Please help
Jun 28, 2013 at 5:57pm UTC
I don't think graphics is supported under windows on BCC. You can use Turbo CPP. It includes graphics.h
Jun 28, 2013 at 6:00pm UTC
graphics.h is a nonstandard (and
extremely outdated) library. The reason it doesn't exist is because it hasn't been bundled with compilers in decades.
Switching to TurboC++ as anandkrishnan is suggesting is probably a bad idea... as that is also ancient.
A better thing to do would be to use a modern compiler, and a modern graphics lib.
Get the latest GCC or MSVS compiler. And look into one of the following graphic libs: SFML 2.0, SDL 2.x, Allegro. (SFML 2.0 is my personal favorite of the 3)
Jun 28, 2013 at 6:10pm UTC
Will it work if you copy graphics.h from a turbo cpp complier?
Jun 29, 2013 at 1:01pm UTC
Well we are studying cpp at school. Our textbooks are based on old cpp. So i have to use ANCIENT <graphics.h> on the ANCIENT turbo ccp.
thanks for the info