Graphics in c++ | SoloLearn: Learn to code for FREE!


Graphics in c++

how can I add/draw graphics in c++(Dev c++specifically) ? I have heard of graphics.h directory but I don't how to use it or where to find it, also is there any better alternative?

6/8/2017 6:51:27 PM


4 Answers

New Answer


There are, apparently the graphics.h library is outdated. @Hasty linked a stackexchange post that will help you get what you need.


SDL and Qt are good libraries for beginners :)


When people talk about 'graphics.h' they are usually referring to the Borland header file that was supplied with Turbo C++ in the late 80's and early 90's. It was for use in full screen DOS mode only and is not cross platform. Graphics programming on modern operating systems has a steep learning curve. It is first necessary to make a decision if the program is going to be cross platform or OS specific and learn the appropriate framework/API/Libraries. Processing ( is a simple environment built for the electronic arts, new media art, and visual design communities with the purpose of teaching the fundamentals of computer programming in a visual context. However, it is based on Java not C++.


And if you don't want to use external libraries, windows.h may help achieve things as well...