Red de conocimiento informático - Material del sitio web - Código fuente de anuncios en pantalla grande

Código fuente de anuncios en pantalla grande

# incluir & ltvgagl.h & gt

# incluir & ltvga.h & gt

# incluir & ltmath.h & gt

int main(void)

{

int a, b, x, y, I

VGA _ modo configurado(g 800 x600 x256); >GL _ setcontextvga(g800 x600 x256);

a = 0; b = 0; x = 60y = 20I = 0;

mientras(1)

{

x = x+2 * I+2;

y = y+2 * I+1;

I = I+2;

gl_fillbox(a, b, x, y, 2);

Sueño(1);

}

VGA _ getch(

vga_setmode(texto);

Devuelve 0;