On 12/13/06, Manoj Sahu <[EMAIL PROTECTED]> wrote:
>
> Hello
> i Have seen a lot of problem regarding the graphics why dont u all try
this simple eye candy graphics learn it try it to comple and see the mazik.
> // Have fun
> // circle.c
> #include"graphics.h"
> #define midx getmaxx()/2
> #define midy getmaxy()/2
> void main()
> {
> int gd = DETECT,gm,rad,col;
> initgraph(&gd,&gm,"c:\\tc\\bgi"); // I Asssume that yoy have load
turbo c in TC Dircectory
> for(col=1;col<16;col++)
> {
> for( rad = 1;rad<250;rad++)
> {
> setcolor(col);
> circle(midx,midy,rad);
> }
> }
> closegraph();
> }
> copy and paste this code and just compile and run it.
You realize this only works on a 15 year old compiler that can only create
MS-DOS executables?
Not too modern if you ask me.
--
Tamas Marki