use to be valide code... give a few INT to higher processor.
some may get dirty. on entrance slot.? psy also possible
BE IN math also. not automated but a full lot's to do.
/************************************************/
/*Arc Library check befor loop and rnd variation*/
/*Sinpix12823 [Sebastien Helie] : 14_05_2011 */
/* */
/* */
/* double user/developper or compilator warning */
/* do a floating point matricial clean up */
/* before any mix of rnd with rotative rectangle*/
/* Note error entry slot while you clean up */
/* usefull # elsewhere. From experience their */
/* is two probleme */
/* 1-3 2-3(4) 1 - slot double number on count+*/
/* 2 - noise entry point */
/* how to clean up.. for now negative psy */
/* work but.. */
/* tech note : you could check the exact */
/* memory position of the error */
/* and by-pass (replace with */
/* jmp or 00 */
/* 0000:0000 */
/* jmp 01c0:0001 --> command PAL */
/* 01c0:0000 [error slot] */
/* :0001 --> memoris it somewhere */
/* intelligence emmergence */
/************************************************/
#include <stdio.h>
#include <graphics.h>
main (void)
{
/* request auto detection */
int gdriver = DETECT, gmode, errorcode;
int xmax, ymax, loop, loop1;
char jump;
/* initialize graphics and local variables */
initgraph(&gdriver, &gmode, "");
/* read result of initialization */
errorcode = graphresult();
/* an error occurred */
if (errorcode != grOk)
{ printf("Graphics error: %s\n", grapherrormsg(errorcode));
printf("Press any key to halt:");
getch();
exit(1);
}
setcolor(6);
xmax = getmaxx();
ymax = getmaxy();
/* draw a diagonal line */
line(0, 0, xmax, ymax);
arc(320,240,0,45,100);
arc(320,240,0,45,80);
arc(320,240,90,135,100);
arc(320,240,90,135,80);
arc(320,240,180,225,100);
arc(320,240,180,225,80);
arc(320,240,270,315,100);
arc(320,240,270,315,80);
do{
for(loop;loop<=480;loop++)
{
line(0,0+loop,640,480-loop);
setcolor(0);
line(0,480-loop,640,0+loop);
setcolor(6);
}
loop=0;
}while(!kbhit());
/* clean up */
getch();
closegraph();
return 0;
}
https://dl.dropbox.com/u/68454194/ARCCHK.EXE
--
most attached file or result are positively balance at
site closed and navigation in function