Simple graphics programm in c++


Here is the simple program which will make the circle and going to animate it, you can add your own methods in it, for getting more and more circles or may be the line in your output.


void main()

int i,j;

int gd=DETECT, gm;

initgraph(&gd,&gm,"c:/your own path"); // for example "turboc3/bgi


cleardevice();                  // it will clear the values stored previously 
circle(223,32,i);               // this will increase the radius of the circle
line (323,343,i,343);
delay(23);                      // since the execution takes place rapidly we decrease the speed of it


closegraph();             // this will terminate or close the internalized graph 


This is very simple program hopping this will useful for you.