Computer Science Canada Screen saver style |
Author: | rickdragon [ Tue Jan 13, 2004 1:23 pm ] |
Post subject: | Screen saver style |
#include<iostream.h> #include<stdlib.h> #include<conio.h> #include<graphics.h> #include<dos.h> #include<math.h> void main() { int gmode=VGA,gdriver=VGAMED; initgraph(&gmode,&gdriver,"c:\\tc\\bgi"); do { for(int i=1;i<=15;i++) { setcolor(i); line(random(640),random(320),320,165); //320,165 //arc(320,200,0,random(360),random(100)); delay(10); } clrscr(); //clearviewport(); // clear display screen in graphics mode }while(!kbhit()); closegraph(); } |
Author: | G-lant [ Sun Feb 29, 2004 2:52 pm ] |
Post subject: | |
ya sure looks cool, u should have ade it a runnable file. (*.exe) |
Author: | wtd [ Tue Mar 02, 2004 9:50 pm ] |
Post subject: | |
G-lant wrote: ya sure looks cool, u should have ade it a runnable file. (*.exe)
And you should surround your code with code tags. |