Circle movement in turbo c

Solved/Closed
Posts
1
Registration date
Monday June 14, 2010
Status
Member
Last seen
June 14, 2010
-
 arun -
I have drawn a circle within a circle. Now I want to give random movement to the inner circle. Plz tell me how will I do it in turbo c.

Regards


1 reply

#include<graphics.h>
#include<stdio.h>
#include<conio.h>


int gd=DETECT,gm,col=0;
initgraph(&gd,&gm," ");
while(!kbhit())
{
setcolor(15);

delay(1000);

col++;
if(col>=600)
col=0;
cleardevice();
}
}
hi I dont know ur name. but I have answer for ur query. I think my answer will be satisfied u.
thax madhu,
I like this code which written and I totally satisfied with this code,
I have 1 more ques that how to move sector.
nice code