01.01.2021

Draw Circle In Dev C++

39

I try to draw a circle ;) ,but the borland c++builder 's compiler can not find this include file->'borlacon.h'
please response to this message because I don't have any helper now.
(I am sorry,English is not my mother tongue :rolleyes: )

  1. Dev C++ Programs
  2. Draw Circle In C++

Aug 15, 2013  I'm using Turbo C. And don't tell me to use other C compilers and use other libraries instead of graphics.h because these are the ones that I really need to use for our project. It looks like immediately after you draw the circle, you go into the main glut loop, where you've set the Draw function to draw every time through the loop. So it's probably drawing the circle, then erasing it immediately and drawing the square. You should probably either make DrawCircle your glutDisplayFunc, or call DrawCircle from Draw.

  • 5 Contributors
  • forum 4 Replies
  • 545 Views
  • 2 Years Discussion Span
  • commentLatest Postby Dave SinkulaLatest Post

alc6379120

I edited the topic of your post so it is more relevant to your question.

Titles like 'Help Me!!!' don't tell us what your problem is. In the future, please choose a more descriptive thread title. :)

graphics.h library is used to include and facilitate graphical operations in program. graphics.h functions can be used to draw different shapes, display text in different fonts, change colors and many more. Using functions of graphics.h you can make graphics programs, animations, projects and games. You can draw circles, lines, rectangles, bars and many other geometrical figures. Tinkertools ri. You can change their colors using the available functions and fill them.

Examples:


Explanation :The header file graphics.h contains line() function which is described below :

Declaration : void line(int x1, int y1, int x2, int y2);

line function is used to draw a line from a point(x1,y1) to point(x2,y2) i.e. (x1,y1) and (x2,y2) are end points of the line.The code given below draws a line.

Dev C++ Programs

Dev
#include <graphics.h>
// driver code
{
// gm is Graphics mode which is a computer display
// DETECT is a macro defined in 'graphics.h' header file
// by loading a graphics driver from disk
line(150, 150, 450, 150);
// line for x1, y1, x2, y2
line(150, 250, 450, 250);
getch();
// closegraph function closes the graphics
// by graphics system .
}

Output:

Draw Circle In C++


n1cegrade.netlify.app – 2018