Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
000.c
Package: 0.rar [view]
Upload User: jsyccqq
Upload Date: 2022-08-09
Package Size: 2k
Code Size: 1k
Category:
GDI-Bitmap
Development Platform:
Visual C++
- #include<stdio.h>
- #include<graphics .h>
- #include<math.h>
- #define PI 3.1415926
- main()
- {
- int gdriver=DETECT,gmode,i,x,y;;
- initgraph(&gdriver,&gmode,"自己的盘在哪里就弄到哪里\win-tc");
- setbkcolor(BLUE);
- /*烟花屏幕函数*/
- for(i=1;i<=639;i++)
- {x=rand()%400;
- y=rand()%200;
- putpixel (x,y,WHITE);
- }
- rise();
- getch();
- }
- /*烟花上升函数*/
- rise()
- {
- int n,x,y,j,x1,y1,u;
- float q;
- /*烟花上升轨迹*/
- for(n=1;n<=10;n++)
- {
- x=rand()%400+100;
- y=rand()%100+300;
- x1=x;
- y1=y-20;
- setlinestyle(1,0,3);
- for(j=1;j<=20;j++)
- {setcolor(rand()%15);
- line(x,y,x1,y1);
- delay(5000);
- setcolor(BLUE);
- line(x,y,x1,y1);
- y1=y1-j;
- y=y-j;}
- /*声音函数*/
- for(u=6000;u>=3000;u=u-100)
- { sound(u);
- delay(800);
- } nosound();
- /*烟花爆炸函数*/
- for(q=0;q<=2*PI;q+=0.15)
- { x1=x+80*cos(q);
- y1=y+80*sin(q);
- setcolor(rand()%15);
- line(x,y,x1,y1);
- delay(1000);}
- for(q=0;q<=2*PI;q+=0.15)
- {x1=x+80*cos(q);
- y1=y+80*sin(q);
- setcolor(BLUE);
- line(x,y,x1,y1);}
- }
- getch();
- }