Apr 08, 2015 I have used graphics.h in dev cpp. Though I can't remember the exact steps I used to include it, but I think the below answer is correct. Source: How to configure graphics.h in Dev-C You can easily solve this problem, DEV-C do support gra. I have been searching to get the source code of the header file graphics.h and its associated library in order to integrate it with my C program. At the same time, I am interested in those cross-platform libraries that works on more than one compiler. DEV-C is a fully-featured integrated development environment (IDE) for creating, debugging and creating applications written in a popular C programming language. Even though tools for the development of C software have undergone countless upgrades over the years, a large number of developers located all around the world have expressed a wish to continue using DEV-C. OnlineGDB is online IDE with C compiler. Quick and easy way to compiler c program online. It supports g compiler for c.
C++ programming language is a versatile programming language. Using C++ you can create low end graphics too i.e. creating basic shapes and words with stylish fonts and adding colors to them can be done using c++.
Graphic programming can be done in c++ using your terminal or command prompt or you can download DevC++ compiler to create graphic programs.
For terminal you need to add the graphics.h libraray to you GCC compiler. For this you will have type in the following commands.
On sequentially typing all the above commands you can successfully install the graphics.h library in your GCC compiler of terminal.
for or the other method you need to install the DevC++ compiler.
graphics.h library − The graphic.h library is used to add graphics to your C++ program. For graphic programming, it is a must include library as it contains all required methods.
Syntax for including graphics in c++ program &ninus;
Program to show implementation of graphic programming in c++ −
Other Common functions of of C++ graphic programming are −
arc() − creates arc of a given angle and given radius.
bar() − creates a bar with given coordinates.
circle() − creates a circle of given radius.
closegraph() − it closed the graphics mode and deallocated memory chunks.
ellipse() − creates an ellipse with given major and minor axis.
floodfill() − flood fill is used to fill a specific color to a specific point whose coordinates are given.
line() − creates a line of given starting and ending points.
rectangle() − creates a rectangle with given coordinates.
Hi pals,
I am a Newbie in C++ Programming field. I plan to add graphics.h header class in
Dev -C++ Version 4.9.9.2 from Bloodshed which is come along with Borland Compiler.
I follow the Steps in URL : http://www.uniqueness-template.com/devcpp/#step2
But I Got Error in the Sample code which test the Working , Please Help me
to get away from this problem . I am waiting to hear from you.
Regards
Anes P.A:'(
You can't. graphics.h is not compatible with Dev-C++