¡Pídele a un experto en lenguaje C que me ayude a crear un pequeño programa! ! !
Un pequeño programa que parece un "Huevo de Pascua"
En la noche oscura, las estrellas brillan y luego los fuegos artificiales despegan uno a uno, explotan y producen coloridos fuegos artificiales. Después de cada fuego artificial, se muestran respectivamente las cuatro letras grandes de Beat (¡jeje! Es el nombre de nuestro equipo de proyecto), y luego estas cuatro letras parpadean en la pantalla. Presione cualquier tecla para regresar al programa original.
¿Una programación tan profesional?
Parece que se necesita un lenguaje de programación muy profesional, como la programación de gráficos por computadora.
#include Graphics.hgt; ;
#include lt;stdio.hgt;
#include lt;math.hgt;
#include lt;time.hgt;
#define PI 3.14159
#define maxx 640
#define maxy 480
main()
{ int i;
char c;
init();
dibujar();
c=getch(); p> p>
}
init()
/*Inicializar función del sistema de gráficos*/
{int gdriver=DETECT, gmode; p>
initgraph(&gdriver,&gmode,"c:\\tc\\bgi"); /*Tenga en cuenta la ruta aquí*/
setbkcolor(1);
cielo();
retorno;
}
cielo()
{int x, y, i;
for(i=1;ilt;=500;i)
{x=rand()640; y=rand()300;
putpixel( x, y , 15);
putpixel(x 1, y, 15
}
for(i=1; ilt; =200; i )
{x=rand()640; y=300 rand()100;
putpixel(x, y, 15);
return;
}
draw()
{int i, j, k, x, y, dy
setfillstyle(1,7);
for(i=1;ilt;=10;i)
{setlinestyle(3,0,3);
p >x=100 rand()400; dy=20 rand()20
for(k=1000;kgt;=500;k-=100)
{sonido(k); retraso(3000);}
nosound();
for(j=1;jlt;=10;j)
{setcolor(i16);
line(x, maxy-(j-1)*dy, x, maxy-j*dy);
retardo(10000); p>
setcolor(0);
línea(x, maxy-(j-1)*dy, x, maxy-j*dy
}< / p>
for(k=6000;kgt;=3000;k-=100)
{sound(k);delay(20000);}
nosound() ;
setlinestyle(3, 0, 2);
llipse(x, maxy-(j-1)*dy);
}
return
}
drawellipse(int; x, int y)
{int i, j, x1, y1, a, b
float q
a=60 rand()60; ;b=a-rand()60;
for(i=2;igt;=0;i--)
{
for(q =0; qlt; =2*PI; q =0.12)
{setcolor(rand()16);
x1=x (a-i*30)*cos(q) ;
y1=y-(b-i*30)*sin(q);
línea(x, y, x1, y1); /p>
demora(50000);
setcolor(0);
for(q=0; qlt; =2*PI; q =0.12)
{x1=x (a-i*30)*cos(q);
y1=y-(b-i*30)*sin(q);
línea( x, y, x1, y1);
}
}
retorno
}
Si; Si no es absolutamente necesario, es mejor utilizar FLASH. Esto dañará muchas células cerebrales.