its very easy just include the graphics directory in your program...
out put a dot on the screen.... in loop like..
Horizontal line from point A(x1,y1) B(x2,y2) start to out put the point from x1,y1 and then evry next loop keep y1 the same and increment x1 by 1.
Thanks
There is one more function in graphic library of C++, that is line().
It has four arguments of int type.
line(starting x coordinate, starting y coordinate, end x coordinate, end y coordinate);
setlinestyle() and setlinecolor() can be used for different line colors and line styles.
The C language is not a graphics language and you cannot draw logic gates using it. C is a programming language, and it is possible to use a graphics library to do so, but you did not specify which library you were using. Please restate the question.
I presume you need a graphics package that you can use with C. Do some google searches (and remember to specify your OS) and pick the one you like the best.
using pie slice function akwinder can draw monkey which exactly looks like her.
the diagram shows that u cant because that a half turn
draw a line chart.
The C language is not a graphics language and you cannot draw logic gates using it. C is a programming language, and it is possible to use a graphics library to do so, but you did not specify which library you were using. Please restate the question.
I presume you need a graphics package that you can use with C. Do some google searches (and remember to specify your OS) and pick the one you like the best.
using pie slice function akwinder can draw monkey which exactly looks like her.
C++ has no built-in graphics methods, including line drawing. Graphics is platform-specific and, as such, requires a graphics API and library specific to your platform and hardware. As a result, there is no generic, one-size-fits-all C++ code for drawing graphics of any kind.
the diagram shows that u cant because that a half turn
C++ is a generic, cross-platform language, but graphics are platform-dependant. thus C++ has no built-in methods for graphics output. To draw graphics in C++ you need a low-level API and library specific to the platform and hardware you intend to target. Some libraries are highly abstract and therefore support cross-platform development, but most are platform-specific. Consult the documentation that came with your library.
draw a line chart.
If you mean how do you draw a curve in C++, you can't. C++ does not have any built-in graphics support of any kind. All graphics are platform-specific so, to be able to draw graphics, you need a graphics API and library suitable for your platform and hardware. As a result, the code you use will not be portable. In most graphics libraries you will draw curves as a series of arcs, so you want to look up the arc() function in your library documentation.
You don't: the C and C++ languages do not have any built-in graphics tool. Further, it is impossible to draw a concentric circle. Multiple circles are concentric when they share the same center.In C or C++, graphic functions such as the drawing of lines, rectangles or circles are provided through third party libraries, or through wrappers which provide access to the operating system's graphics functions.
C++ is a generic, cross-platform programming language, while 3D graphics are platform-specific. To draw graphics of any kind you need a low-level API and library specific to your platform and hardware.
Download and install the WinBGIM Devpack. Once installed, you can include graphics.h to draw graphics.
ANSI/ISO C does not and never has done graphics.