Kako Instalirati
Kako Instalirati
Kako Instalirati
Read
Discuss(30+)
Introduction
So far we have been using C language for simple console output only. Most of us are
unaware that using C++, low level graphics program can also be made. This means we can
incorporate shapes,colors and designer fonts in our program. This article deals with the steps
to enable the DevC++ compiler to generate graphics .
Configuring DevC++
Now we are done with configuring of the DevC++ to support graphics programming. We
shall write our very first graphics program now.
Running the first graphics program
18. Click OK and Compile and run the project and you’ll get this output:
Program Explanation
The initgraph function- ?Initializes the graphics system.
In C Program execution starts with main() similarly Graphics Environment Starts with
this function.
initgraph() initializes the graphics system by loading a graphics driver from disk (or
validating a registered driver) then putting the system into graphics mode
This article is contributed by Mudit Maheshwari. If you like GeeksforGeeks and would like
to contribute, you can also write an article and mail your article to
[email protected]. See your article appearing on the GeeksforGeeks main page
and help other Geeks.
Please write comments if you find anything incorrect, or you want to share more information
about the topic discussed above