/* WIN-TC BGI graphical programming template */# include "conio. H "# include" graphics. H "# include" math. H "# include" stdio. H "# define closegr closegraphvoid initgr (void)/* BGI initialization */{int GD = detect, GM = 0;/* and Gd = VGA, GM = vgahi is the same effect */registerbgidriver (egavga_driver);/* you do not need to register the BGI driver. BGI files support running */initgraph (& GD, & GM, "");} int main (void) {setbkcolor (blue ); printf ("/n/T/thello, dajie! "); Getch (); int A, B; float C; initgr ();/* BGI initialization */a = rand () % 360; B = 0; C = 3.1415926 * A/180; while (1) {setcolor (RAND () % 16); line (320,240,320 + rand () % 200 * Cos (c ), 240-rand () % 200sin (c); B ++; If (B> 10000) break;} printf ("Byebye! "); Getch ();/* pause to see the previous drawingCode*/Closegr ();/* restore text Screen mode */return 0 ;}