GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 18-Nov-2003, 02:48
rickdragon
 
Posts: n/a
Thumbs up

screen saver


screen saver effect

---------------------------------
CPP / C++ / C Code:
#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);
	  arc(290,180,0,45,random(200));
	  arc(290,180,90,135,random(200));
	  arc(290,180,180,225,random(200));
	  arc(290,180,270,315,random(200));
	  delay(10);
	  //arc(290,180,0,360,random(200));
     } //clrscr();
     }while(!kbhit());
	closegraph();
}
 
 

Recent GIDBlogMeeting the local Iraqis by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
screen resolution zuzupus Web Design Forum 0 29-Jul-2003 02:50

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 05:02.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.