Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Screen saver style
Index -> Programming, C++ -> C++ Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
rickdragon




PostPosted: 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();
}
Sponsor
Sponsor
Sponsor
sponsor
G-lant




PostPosted: Sun Feb 29, 2004 2:52 pm   Post subject: (No subject)

ya sure looks cool, u should have ade it a runnable file. (*.exe)
wtd




PostPosted: Tue Mar 02, 2004 9:50 pm   Post subject: (No 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.
Display posts from previous:   
   Index -> Programming, C++ -> C++ Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: