c language-----
graphics-----
runtime error-----
draw a circle----
How can i include graphic program in c language? ex- i've to draw a circle(10,20,30) runtime err occur?
there must be some error with the initgraph function.
#include%26lt;conio.h%26gt; // for getch();
#include%26lt;graphics.h%26gt;
void main()
{
int gdrive,gm=DETECT;
initgraph(%26amp;gdrive,gm,""); /*let the system automatically detect the path to .bgi files*/
circle(50,50,30);/*in your example radius 30 with x,y as 10,20 will cause the circle to be a little away from the screen. */
getch();
closegraph();
}
hope the above code will work if not contact me m_gopi_m@yahoo.co.in
Reply:I'll give $1000 to anyone who can possibly answer this question in a useful way given the way it was stated by the asker.
mothers day flowers
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment