Вы находитесь на странице: 1из 91

Instituto Politcnico Nacional

Escuela Superior de Ingeniera Mecnica


y Elctrica.

Ingeniera en Comunicaciones y
Electrnica

Alumna:

Materia:

Programacin Orientada a Objetos

Profesora:

Gonzlez Snchez Amrica Mara

Apuntes de la Materia

[Fecha
] 20
UNIDAD 13-
35

UNIDAD
2.36-46

UNIDAD3..4
7-54

PROYECTOS
.55-81

Proyectos
.15-20

- Grficos
- Pacman
- Tablero.

Unidad
1
20-35

- Pr1
- Pr2
- Pr3
- Pr3_1
- Pr4
- Pr4_1
- Pr5
- Pr6
- Pr7
- Pr7_1
- Pr8

[Fecha
] 20
APUNTES.
De nuestra carpeta de extras
este programa nos muestra el
codigo aski.

#include<stdi

o.h>
#include<con

io2.h> int

main()

char t; for(int Este programa nos muestra


i=1; la tecla al oprimirla.

i<255;i++) #include<stdio.h>

printf("%c- #include<conio2.h>

%d\t",i,i); //
int main()
scanf("%c",&
{
t); getch();
char t;
t=getch();

getch();
printf("dame
return(0);
tecla: "); //
} scanf("%c",&

t); getch();

t=getch();

printf("\n la tecla que

[Fecha
] 20
1
oprimiste es : %d",t);

getch();

return(0);

[Fecha
] 20
setbkcolor(CYAN);

Espera una tecla y la muestra cleardevice();


en la pantalla.
setcolor(BLUE);
#include<stdio.h>
//rectangle(350,150,
#include<conio2.h>
220);

int main() setfillstyle(1,RED);


bar(350,200,400,28
{ 0); setcolor(RED);
char t; printf("dame tecla: "); //circle(400,150,60);
// scanf("%c",&t); t=getche(); setcolor(RED);
printf("\n la tecla que oprimiste // pieslice(375,200,0,3
es : %c",t); getch(); getch(); 60,25);

[Fecha
] 20
return(0);

setfillstyle(1,YELLOW);
pieslice(370,210,0,360,
5);
pieslice(380,210,0,360,
5);
pieslice(350,280,0,360,
5);
pieslice(375,280,0,360,9);

getch();

closegraph( );

return( 0 );

De la carpeta grficos tenemos.

Realizacion de un fantasmita.

[Fecha
] 20
#include <iostream> #include <graphics.h> using namespace

std; int main( )

{ }

initwindow( 800 , 600 , "dibujo" );


Este programa es mi primer
grafico, lo utilizaremos como
prueba de grafico, utilizando color
de fondo y color interno.

#include <iostream>

#include <graphics.h>

using namespace std; int main( )

{ Este programa realiza figuras


dibujamos el
pacman, con relleno, color y
fondo. //inicializar los graficos.
#include <iostream>
initwindow( 800 , 600 , "pRUEBA DE
GRAFICA" ); #include
<graphics.h> using
setbkcolor(GREEN);
namespace std; int
cleardevice(); main( )

initwindow( 800 , 600 ,


putpixel(400,300,YELLOW); "figuras" );
putpixel(40,30,RED); setbkcolor(CYAN);
cleardevice();
line(150,150,150,350);//horizontal. setcolor(RED);
setfillstyle(1, YELLOW);
setcolor(LIGHTCYAN); bar(50,50,750,550);
line(150,150,500,150);//vertical rectangle(50,50,750,550)
// ; setcolor(RED);
setcolor(BLUE); //circle(400,300,50);
line(150,150,150,150);//HORIZONTAL. setcolor(YELLOW);

setcolor(BLACK);

line(150,150,500,350);//EN DIAGONAL.

[Fecha
] 20
setcolor(CYAN);

circle(400,300,30);

pieslice(400,300,30,360,30);//PACMA
N a la de derecha.
getch();
pieslice(300,300,210,150,30);//PACMAN a

closegraph( );//cuierra los graficos.

la izquierda

return( 0 );

pieslice(350,200,120,60,30);//PACMAN

} hacia ariba.
pieslice(350,400,300,240,30);//PACMAN hacia abajo.
using namespace std;
// imprimir texto en graficos.
int main( )
//moveto(200,100);
{ int x,y,color=1;
setcolor(WHITE);

[Fecha
] 20
initwindow( 800 , 600 ,
settextstyle(5,0,3)
"WinBGIm" );
outtextxy(200,100) srand(time(NULL)); while(!
"programa que muestre el uso de
graficos en c++"); kbhit())

getch() {
return( 0 );
x=rand()%800;
}
y=rand()%600;

setcolor(color++);
if(color==15) color=1;

circle(x,y,30);

rectangle(x,y,x+100,y+100);

delay(10); }

getch(); closegraph( ); return( 0 );

[Fecha
] 20
}}

} }

#include <iostream>

#include <graphics.h>

#include<stdlib.h> //cstdlib>
Este programa realiza Men con fondo de setcolor(CYAN); //
selecciono el mismo color pantalla con color y figuras apareciendo,
usando de fondo para simular el borrado
while y funcin(es) de usuario, Tablero de ajedrez

#include <graphics.h>
do{
#include<stdlib.h> //<cstdlib>
;
void figuras(void) circle(x,y,r);
{ int x,y,color=1;
r-=10;
srand(time(NULL)); //inicializar numeros
delay(100); aleatorios
} while(r<300);
while(!kbhit())// espera una tecla (hara el
aleatoria hasta que el usuario presiona una tecla) }

x=rand()%800; void tablero (void)

y=rand()%600; { int x,y,i,j; setcolor(color++);

[Fecha
] 20
setfillstyle(1,BLUE); if (color==15)

color=1; x=100; circle(x,y,30);// circulo

y=100;

rectangle(x,y,x+100,y+100); //rectangulo

bar(x+50,y,x+(450),y+(350)); // putpixel(x,y,color); //

punto setfillstyle(1,RED);

delay(50);// mete un retardo en milisegundos for(j=1;j<8;j++)

} {

} for(i=1;i<5;i++)

void circulos (void) bar(x+=100,y,x+50,y+50);

{ int x=400,y=300,color=1,r=30; y+=50;

do{ setcolor(color+ if(x==500) x=150;

+); if (color==15) if(x==550) x=100;

color=1;

circle(x,y,r+=10);
}
delay(100);
getch();
}
} while(r<300);
int main( ) default: outtextxy(250,300,"o
valida");
{
getch();
char resp;
break;
initwindow( 800 , 600 , "figuras aleatorias"

[Fecha
] 20
); }

} while(resp!
='4');
//circulos();
//tablero();
//figuras();
//getch();
do{ setbkcolor(CYAN);
cleardevice(); closegraph( );
setcolor(WHITE); rreturn( 0 );

}}
settextstyle(3,0,5);

outtextxy(200,100,"1.Figuras.");

outtextxy(200,150,"2.circulos.");

outtextxy(200,200,"3.tablero.");

outtextxy(200,250,"4.salir.");

outtextxy(150,300,"elige una opcion:

"); resp=getch();

cleardevice();

switch(resp)

{ case '1' :figuras();

break;

case '2' :circulos();

break;

case '3' :tablero();

break;

case '4' :break;

[Fecha
] 20
De la carpeta repaso.

cout<<"\n dame otro entero";

Pr.1:Este programa pide y manda nmeros


cin>>y; enteros y flotantes.
//pedir un dato tipo
float, cin.
#include<iostream>
cout<<"\n dame otro flotante:";
#include<conio.h>
scanf("%f",&suma);
#include<stdlib.h>

getch();
using namespace std;
return 0;
// variables globales
}}

int main()

{//variables locales

int x,y,car,dato; float suma;

dato=23;//darle valores a la variable

global

x=10;

suma=234.34;//darle valor a la
variable suma

//pedir un dato tipo char, cin.

printf("dame un caracter");

scanf("%c",&car);

//pedir un dato tipo char, cin.


}

[Fecha
] 20
cout<<"\n dame otro caracter";

cin>>car;

//pedir un dato tipo int scanf.

printf("dame un entero");

scanf("%d",&dato);

//pedir un dato entero con cin.


Pr.2:Este programa nos pide los scanf printf("dame un
nmeros enteros, dobles, utilizando
caracter"); scanf("%c",&car);
variables.
//pedir un dato char con cin
#include<iostream>
cout<<"dame otro
#include<conio.h>
carecter"<<endl; cin>>car;
#include<stdlib.h>

using namespace //pedir un dato

std; //variables entero con scanf

globales char car; printf("dame un

int dato; float suma; entero");

double vectores; scanf("%d",&dato);

//pedir un dato entero

con cin
int main()
cout<<"dame otro
{//variables locales
entero"<<endl;

int x,y; cin>>y;

dato=23;//darle valor a la variable

global x=10;
//pedir un dato flotante

suma=234.34;//darle valor a la con scanf printf("dame

variable suma //pedir un dato char con un flotante"); cin>>suma;

[Fecha
] 20
//pedir un dato flotante con cin }}

cout<<"dame otro flotante"<<endl;

scanf("%f",&suma);

//pedir un dato double con cin

printf("dame un double");

cin>>vectores;

//pedir un dato double con scanf

cout<<"dame otro double"<<endl;

scanf("%lf",&vectores);

getch();

return 0;
P.r3: Este programa realiza la suma
de variables.
#include<stdlib.h>

#include<stdio.h>

#include<iostream>

#include<conio.h>

using namespace std;

[Fecha
] 20
char car;
float suma;
P.r4:Este programa realiza el
int main()
hola mundo.
{system #include<stdlib.h>
("cls"); #include<stdio.h>

#include<iostream>
int x,y;
#include<conio2.h>
double vectores;
suma=12.34;
printf("dame el valor de using namespace std;
x"); cin>>x;
//imprimir los valores de las variables

printf("el valor de la variable suma es :%1.2f


int main() ",suma)
{system ("cls"); // clrscr();
cout<<"\n el valor de x es"<<x;
clrscr();
printf("dame un caracter");
gotoxy(10,10);
car='A';
cout<<"hola mundo";
printf("el valor de car es : %c",car);
//system("pause");//
system ("pause"); system ("pause");
return 0;

getch(); return 0;
}
getch();

}
cout<<"2 Semestre";

gotoxy(23,12);//colocar el cursor de la
posicion x,y.
Pr5: imprime o muestra una portada

[Fecha
] 20
usando colores. textcolor(RED);

#include<iostream> cout<<"Alumna: Abigail Cecilia


Beltran
#include<conio2. Morales";
h> gotoxy(12,5);//colocar el cursor de
#include<stdio.h la posicion
x,y.
> using

namespace std;
textcolor(RE
D);
int main() getch();
return 0;
{ clr
scr();
gotoxy(20,5);//colocar el curso de la
posicion
x,y.

textcolor(GREEN); cout<<"Instituto

Politecnica Nacional";

gotoxy(16,7);//colocar el cursor de la
posicion
x,y.

textcolor(RED);

cout<<"Esculea Superior de
Mecanica y
Electrica";

gotoxy(17,10);//colocar el cursor de
la
posicion x,y.

textcolor(RED);

cout<<"Comunicaciones y Electronica";

gotoxy(18,8);//colocar el cursor de la posicion


x,y. textcolor(RED);

cout<<"Programacion Orientada a Objetos";

[Fecha
] 20
gotoxy(19,9);//colocar el cursor de
la posicion } x,y.

textcolor(RED);

Pr6: imprime o muestra una portada. I int main ( )

Usando colores y funciones de portada ( );


usuario.
getch ( );
#include<iostream>
}}
#include<conio2.h>

#include<stdio.h> using namespace

std; void portada (void)

clrscr ( );

textcolor(RED); }

gotoxy (20,5); //coloca el cursor en la pantalla Pr7:programa que


imprime tu nombre 10 veces con
while y do while.
cout<< "Instituto Politecnico Nacional";
#include<iostream>

#include<conio2.h>
textcolor(GREEN);
using namespace
std; gotoxy (10,10); //coloca el cursor en la
pantalla int main()

cout<< "Escuela Superior de Ingenieria


{ int x;
Mecanica y Electrica"; for(x=1;x<=10;x++)
textcolor(BLUE);
cout<<"\nabyceci\t";
gotoxy (15,15); //coloca el cursor en la
pantalla

[Fecha
] 20
cout<< "Ingenieria en Comunicaciones Y;
cout<<" \npresione una tecla para continuar \t";

getch();
textcolor(YELLOW);

gotoxy (20,20);//coloca el cursor en la


clrscr();
pantalla cout<< "Castillo
x=1;
Balderas Anglica Fernanda";
while(x<=10)

} { cout<<x<<"\nsoy el ciclo while\t";


x++; cout<
<"*";
}
do
cout<<"\npresione una tecla para continuar\t"; {

getch(); getch();

clrscr(); x=1; f=getch();

do{cout<<"\n\na clrscr();

by\t";
switch(f)

x++; {//flecha

} arriba

while(x<=10); case 72:

getch();

return(0); gotoxy(x,y-
-);
} cout<<"*";
break;
case 80: gotoxy(x,y++); cout<<"*";

break;

case 77:

Pr8: Programa realizando casos para gotoxy(x+


+,y); imprimir asteriscos.
cout<<"*";

[Fecha
] 20
#include<iostream>
break;
#include<conio2.h>

#define fin gotoxy(10,24);


cout<<"presione una
case 75:
tecla para finalizar..........."<<endl; getch()
gotoxy(x--,y);
using namespace std;
cout<<"*";
int main() break;
{ case 27:
int x=40, y=12; break;
char f;
}
gotoxy(x,y);
}while(f!=27); case 77: switch(f)

fin; return 0; { case 1: //menu

edicion
}
bar(105,30,205,300);
Carpeta proyectos.
rectangle(105,30,205,300

);

outtextxy(115,40,"edi");line(105,60,
205,60); Graficos: Este programa realiza el men de la
computadora, con colores. f=2;

#include <graphics.h> break;

#define ESC 27 case 2://menu ayuda. el siguiente.

int main( ) bar(515,30,705,300); { char r;

rectangle(515,30,705,300);

int f;
outtextxy(530,40,"ayuda");line(515,120,705,120);
initwindow( 800 , 600 , "menu grafico" );
f=3;
do{
break;

[Fecha
] 20
setbkcolor(LIGHTMAGENTA);
case 3: //ultimo no se
puede.
cleardevice();
bar(515,30,705,300);
setfillstyle(1,LIGHTBLUE);//COLOR DE
TEXTO rectangle(515,30,705,300);

bar(0,0,800,30);
outtextxy(530,40,"ayuda");line(515,120,705,120);
setcolor(BLACK);
f=3;
setbkcolor(LIGHTBLUE);
break;
outtextxy(10,10,"Archivo");line(10,25,20,25
); }

//ixquierda
outtextxy(110,10,"Edicion");line(110,25,120,25);
case 75: switch(f)

{ case 1: //primero no se
puede outtextxy(510,10,"Ayuda");line(535,25,530,25)
r=getch()

switch(r) bar(5,30,205,300);

rectangle(5,30,205,300
{//flecha derecha.
);

outtextxy(50,40,"nuevo");line(5,60,205,60);
f=1; f=2; break;

break;

case 2://menu archivo, el siguiente a la case'u':


derecha. case'U':bar(515,30,705,300);
bar(5,30,205,300); rectangle(515,30,705,300);
rectangle(5,30,205,300);

outtextxy(530,40,"ayuda");line(515,120,705,120);
outtextxy(50,40,"nuevo");line(5,60,205,60);

[Fecha
] 20
f=3;

break;

}getch();

}while(r!

=ESC);

f=1; break; getch();

case 3: //ultimo no se puede.

bar(105,30,205,300);
closegraph( )
rectangle(105,30,205,300); ;

outtextxy(115,40,"edi");line(105,60,
205,60);
return( 0 );
f=2;
break; }}
}

break; case'a':

case'A':bar(5,30,205,300);

rectangle(5,30,205,300);

outtextxy(50,40,"nuevo");line(5,
60,205,60);

f=1;

break;

case'e':

case'E':bar(105,30,205,300);
rectangle(105,30,205,300);
outtextxy(115,40,"edi");line(105,6
0,205,60);

Este proyecto es la
realizacin del pacman.

[Fecha
] 20
#include <iostream> }

#include <graphics.h> int main( )


void fantasma(int x,int {
y,int color) int xp=400,yp=300;

{ char f; initwindow( 800 , 600 ,

"Fantasmas" ); cleardevice( );
setfillstyle(1,color);

setcolor(color); //fantasma(200,200,RED);

//fantasma(400,350,GREEN);
bar(x,y,x+50,y+80);//cuerpo setcolor(YELLOW);
setfillstyle(1,YELLOW);
pieslice(x+25,y,0,360,25);//cab
pieslice(xp,yp,30,330,30);//pacman
eza setfillstyle(1,WHITE); a la
derecha
setcolor(WHITE);
do{
pieslice(x+15,y+10,0,360,6);// fantasma(200,200,RED);
ojo izq
fantasma(400,350,GREEN);setfillstyle(1,Y
pieslice(x+35,y+10,0,360,6);// ELLOW);

ojo der getch(); f=getch();

setfillstyle(1,WHITE); cleardevice();

setcolor(WHITE); pieslice(xp,yp,0,360,30

); delay(100);
pieslice(x+25,y+80,0,360,9);//
cleardevice();
patas

pieslice(x+7,y+80,0,360,9);//p
switch(f)
atas
{

pieslice(x+43,y+80,0,360,9);// //flecha arriba

patas setcolor(RED);

case 72: if (yp>30)

[Fecha
] 20
pieslice(xp,yp-
=10,120,60,30);//pacman
pieslice(xp,yp,120,60,30);
hacia arriba
break;
else
//flecha abajo case

80: if(yp<570)

pieslice(xp,yp+=10,300,240,30);//pacman hacia abajo

else

pieslice(xp,yp,120,60,30);

break;

case 77: if(xp<770)


Este programa realiza un men con figuras
aleatorias y el tablero.
pieslice(xp+=30,yp,30,330,30);//pacman a
#include <stdio.h>
la derecha

[Fecha
] 20
#include <iostream>

#include<stdlib.h

> #include

<graphics.h>

else using namespace

std; void

figuras(void)
pieslice(xp,yp,120,60,30);

break; {

case 75: if(xp>30) int x,y,color=1;

pieslice(xp-
=30,yp,210,150,30);//pacman a la
srand(time(NULL));
izquierda
//do
else
for(color=1;!
pieslice(xp,yp,120,60,30);
kbhit();color++)
break;
{

}//fin del switch x=rand()

} %800;
while(f!=27)
y=rand()%600;
closegraph( )
setcolor(color);
; return( 0 );
if(color==15)
} color=1;
circle(x,y,30);

rectangle(x,y,x+100,y+100);

//putpixel(x,y,color);

delay(1);//retardo en milisegundos

[Fecha
] 20
} {

//while(!kbhit()); //x=100+x; //

} y=100;

void circulos(void) for(i=1;i<5;i+

+)
{

int x=400,y=300,color=1,r=30; bar(x+=100,y,x+5

0,y+50); y+=50;
do{ setcolor(c if(x==500)
olor++); x=150;
if(color==15) if(x==550)
color=1; x=100;
circle(x,y,r+=10);
}
delay(100);
getch();
} }
while(r<300); int main( ) {char resp;
setcolor(BLACK);//Simular el initwindow( 800 , 600 ,
borrado do{ "Figuras " );

do{ setbkcolor(CYAN);
circle(x,y,r); cleardevice();

r-=10; setcolor(WHITE);

delay(100); settextstyle(1,0,3);

}while(r>30); //figuras();

} //circulos();

void outtextxy(200,100,"1.

tablero(void) Figuras.");

{ int outtextxy(200,150,"2.

Circulos.");

[Fecha
] 20
x,y,j,i,inc=0; outtextxy(200,200,"3.

tablero.");
setfillstyle(1,YELL
OW); x=100;
outtextxy(200,250,"4. Salir.");
y=100;
bar(x+50,y,x+450 outtextxy(150,300,"Elije
,y+350);
una Opcion"); resp=getch();
setfillstyle(1,RED);
for(j=1;j<8;j++) cleardevice();

switch(resp)

[Fecha
] 20
case '1':figuras();

break; case '2':circulos();

break; case '3':tablero();

case '4': break;

defaul:outtextxy(250,300,"opcion no
valida");

getch(); break;

} while(resp!='4');

getch();

Este programa realiza funciones


de usuario.
closegraph();
Pr1
}
#include<iostream>

#include<conio2.h>

using namespace std;

struct fecha {int d,a;

char m[30];

};

fecha pidefecha (void)

{ fecha aux;

//cout<<"dame una fecha\n";

cout<<"dia:";

cin>>aux.d; cin>>aux.m;

cout<<"mes;"; cout<<"ano:";

[Fecha
] 20
cin>>aux.a; #include<conio

return (aux); 2.h> using

namespace std;
}
struct fecha {int
void muestrafecha (fecha f)
d,a;
{
char
cout<<"la fecha es \n\n"
name[50],dir[80],tel[30],email[5
<<"\ndia:"<<f.d
0]; int edad;

<<"\n\nmes:"<<f.m
};
<<"\nAno:"<<f.a;
void pidedatos (void) {
// cout<<"la fecha es \n\n"
datos auxDatos; char l;
//<<f.d<<"\" cout<<"dame
} Nombre";
int main () cin.get(auxDatos.name
{ fecha cumple,hoy; ,50);
cout<<"dame una fecha de
// ffluss(stdin);
cumpleaos\n";
cout<<"dame
cumple=pidefecha();
Direccion";
muestrafecha(cumple);

hoy=pidefecha(); cin.get(l);
muestrafecha(hoy); getch(); cin.get(auxDatos.dir,80);
return(0); cout<<"dame Telefono";

} cin.get(l);
Pr2: Utilizamos matrices y
cin.get(auxDatos.tel,30);
funciones de usuario para
direccionesy telfono etc. cout<<"dame e-mail";

#include<iostre
cin.get(l);
am>

[Fecha
] 20
cin.get(auxDatos.email,50); Pr3: Este programa retorna y
manda los datos.
cout<<"dame edad";

cin>>auxdatos.edad; #include<iostre

return(auxdatos); am>

} #include<conio

2.h> using
void muestradatos(datos A)
namespace std;
{
struct fecha
out<<"dame
Nombre"<<auxdatos.name; {int d,a; char

cout<<" m[30];

Direccion"<<auxdatos.dir;
};
cout<<"Telefono"<<auxdatos.tel; struct datos

cout<<" e- {
mail"<<auxdatos.email; char
cout<<" edad"<<auxedad.edad; name[50],dir[80],tel[30],email[5
cin>>auxdatos.edad; 0]; int edad; fecha cumple;

} };
int main() fecha pidefecha (void)
datos A; { fecha aux;
A=pidedatos;
//cout<<"dame una
muestradatos(A
fecha\n"; cout<<"dia:";
)
cin>>aux.d;
getch(); cout<<"mes;";
return(0) cin>>aux.m;

cout<<"Ao:";
}
cin>>aux.a; return

(aux);
}

[Fecha
] 20
} nacimiento:\n"; cout<<"dia";

void muestrafecha (fecha f) cin>>auxDatos.cumple.d;

cout<<"la fecha es \n\n" cout<<"\nmes";

<<"\ndia:"<<f.d cin>>auxDatos.cumple.m;

cout<<"\nAoo";
<<"\n\nmes:"<<f.m
auxDatos.cumple=pidefecha();
<<"\nAo:"<<f.a;
return(auxDatos);
// cout<<"la fecha es

\n\n" //<<f.d<<"\" }

datos pideDatos (void) void muestradatos(datos A)

{ datos auxDatos; {clrscr();

char l; cout<<" Direccion"<<A.dir;

cout<<"Telefono"<<A.tel;
cout<<"dame Nombre";
cin.get(auxDatos.name,50); cout<<" e-mail"<<A.email;

// ffluss(stdin); cout<<" edad"<<A.edad;

cout<<"dame Direccion"; cout<<"dame

Nombre"<<A.name;
cin.get(l);
cout<<"FECHA DE
cin.get(auxDatos.dir,80);
Nacimiento";
cout<<"dame Telefono";
muestrafecha(A.cumple);

cin.get(l);

cin.get(auxDatos.tel,30);
}
cout<<"dame e-mail";
int main()

cin.get(l); {

cin.get(auxDatos.email,50); datos A;

cout<<"dame edad"; // A=pidedatos();

cin>>auxdatos.edad; muestradatos(A);

cout<<"dame fecha de

[Fecha
] 20
getch(); cin>>aux.m;

return(0) cout<<"Ao:";

cin>>aux.a; return
}
(aux);
Pr3_1:Este programa pide datos
con struct. }

void muestrafecha (fecha f)


#include<iostre
{
am>

#include<conio cout<<"la fecha es \n\n"

2.h> using <<"\ndia:"<<f.d

namespace std;
<<"\n\nmes:"<<f.m
struct fecha {int
<<"\nAo:"<<f.a;
d,a;
// cout<<"la fecha es \n\n"

char m[30]; //<<f.d<<"\"

}; }

struct datos
void pide (void) { datos
{
auxDatos; char l;
char

name[50],dir[80],tel[30],email[ cout<<"dame Nombre";

50]; int edad; fecha cumple; cin.get(auxDatos.name,50);

}; // ffluss(stdin);
fecha pidefecha (void) { fecha cout<<"dame Direccion";

aux; cin.get(l);

cin.get(auxDatos.dir,80);
//cout<<"dame una fecha\n";
cout<<"dame Telefono";
cout<<"dia:";

cin>>aux.d;

cout<<"mes;";

[Fecha
] 20
cin.get(l); cout<<"dame
Nombre"<<A.name;
cin.get(auxDatos.tel,30); cout<<"FECHA DE Nacimiento";
cout<<"/"<<A.cumple.m;
cout<<"dame e-mail";
cout<<"/"<<A.cumple.a;

cin.get(l);

cin.get(auxDatos.email,50); }

cout<<"dame edad"; int main()

cin>>auxdatos.edad; datos A;

cout<<"dame fecha de A=pidedatos;

nacimiento:\n"; cout<<"dia"; muestradatos(A)

cin>>auxDatos.cumple.d; getch();

cout<<"\nmes"; return(0)

cin>>auxDatos.cumple.m;
}
cout<<"\nAoo";
Pr4: Programa que usa
cin>>auxDatos.cumple.a; dos struct con funciones de
return(auxdatos); usuario

}
#include<iostream>
void muestradatos(datos A)
#include<conio2.h>
{
using namespace std;
cout<<"
struct fecha
Direccion"<<A.dir;

cout<<"Telefono"<<A.tel; { int

cout<<" e-mail"<<A.email; d,a;

cout<<" edad"<<A.edad;
char m[30];
cin>>auxdatos.edad;
};

struct datos

[Fecha
] 20
{

{ char char l;
name[50],dir[80],tel[30],email[50];
int edad; fecha Nac; cout<<"Dame Nombre:";

void pideFecha (void) cin.get(name,50);

{ cout<<"\nFecha de cout<<"Dame Direccion:";

nacimiento:"; cin.get(l);//l es para limpiar buffer de

cout<<"Dia:";cin>>Nac.d; teclado cin.get(dir,80);

cout<<"Mes:";cin>>Nac.m; cout<<"Dame Telefono:";

cout<<"Ao:";cin>>Nac.a; cin.get(l);//l es para limpiar buffer de

teclado cin.get(tel,30);
}

void muestraFecha (void) cout<<"Dame Email:";

{ cout<<Nac.d<<"/"<<Nac.m<<"/" cin.get(l);//l es para limpiar buffer de


<<Nac.a;
teclado cin.get(email,50);
} cout<<"Dame Edad:"; cin>>edad;
void pideDatos(void)
/*

[Fecha
] 20
cout<<"\nDia:";
cin>>auxDatos.cumple.d;
getch()
cout<<"\nmes:";
;

return

0;

}
cin>>auxDatos.cumple.m;

cout<<"\nanio:";

cin>>auxDatos.cumple.a; */

void muestraDatos (void)

clrscr();

[Fecha
] 20
cout<<"Nombre:"<<name;

cout<<"\nDireccion:"<<dir; Pr4_1: Programa que usa dos


struct con funciones de usuario
cout<<"\nDame Telefono:"

<<tel; cout<<"\nDame

Email:"<<email; #include<iostream

cout<<"\nDame >

Edad:"<<edad; #include<conio2.h

cout<<"\nFecha de > using

nacimiento:"; namespace std;

muestraFecha(); struct fecha

/*cout<<A.cumple.d;

cout<<"/"<<A.cumple.m;
{
cout<<"/"<<A.cumple.a;*/
int d,a;

char
}
m[30];
};
};
int main()

{
struct datos
datos A;

A.pideDatos();
{ char
A.muestraDatos();
name[50],dir[80],tel[30],email[5
0];

int edad;

fecha Nac;
void pideFecha (void); cin.get(email,50); void muestraFecha

(void);

cout<<"Dame Edad:";

[Fecha
] 20
void pideDatos (void);

cin>>edad;

void muestraDatos (void);

pideFecha();

}; /*

void datos::pideFecha(void) cout<<"\nDia:";

{ cin>>auxDatos.cumple.d;

cout<<"\nFecha de nacimiento:"; cout<<"\nmes:";

cout<<"Dia:";cin>>Nac.d; cin>>auxDatos.cumple.m;

cout<<"Mes:";cin>>Nac.m; cout<<"\nanio:";

cout<<"Ao:";cin>>Nac.a; cin>>auxDatos.cumple.a; */

} }

void datos::muestraFecha(void) void datos:: muestraDatos (void)

{ cout<<Nac.d<<"/"<<Nac.m<<"/"<<Nac.a; {

} clrscr();

void datos::pideDatos(void) cout<<"Nombre:"<<name;

{ cout<<"\nDireccion:"<<dir;

char l; cout<<"\nDame Telefono:" <<tel;

cout<<"Dame Nombre:"; cout<<"\nDame Email:"<<email;

cin.get(name,50); cout<<"\nDame Edad:"<<edad; cout<<"Dame

Direccion:"; cout<<"\nFecha de nacimiento:";

cin.get(l);//l es para limpiar buffer de teclado muestraFecha();

cin.get(dir,80);

cout<<"Dame Telefono:"; /*cout<<A.cumple.d;

cin.get(l);//l es para limpiar buffer de teclado cout<<"/"<<A.cumple.m;

[Fecha
] 20
cin.get(tel,30); cout<<"/"<<A.cumple.a;*/ cout<<"Dame Email:";

cin.get(l);//l es para limpiar buffer de teclado }


int edad;

int main() fecha Nac; void

{ pideFecha (void);

datos A; void muestraFecha (void);

public:
A.pideDatos();

A.muestraDatos(); void pideDatos

(void); void
getch();
muestraDatos (void); };
return 0;

void datos::pideFecha(void)
} }
{
Pr5: //Programa que usa CLASS
cout<<"\nFecha de nacimiento:";
#include<iostream
cout<<"Dia:";cin>>Nac.d;
>
cout<<"Mes:";cin>>Nac.m;
#include<conio2.h
cout<<"Ao:";cin>>Nac.a;
> using namespace

std; struct fecha }

void datos::muestraFecha(void)
int d,a;
{ cout<<Nac.d<<"/"<<Nac.m<<"/"
char m[30];
<<Nac.a;
};
}

void datos::pideDatos(void)
class datos
{
{ private: char
char l;
name[50],dir[80],tel[30],email[50];
cout<<"Dame Nombre:";

[Fecha
] 20
cin.get(name,50); cout<<"\nFecha de nacimiento:";

cout<<"Dame Direccion:"; muestraFecha();

cin.get(l);//l es para limpiar buffer

de teclado cin.get(dir,80);
/*cout<<A.cumple.d;
cout<<"Dame Telefono:";
cout<<"/"<<A.cumple.m;
cin.get(l);//l es para limpiar buffer
cout<<"/"<<A.cumple.a;*/
de teclado cin.get(tel,30);

cout<<"Dame Email:";
}
cin.get(l);//l es para limpiar buffer

de teclado cin.get(email,50);

cout<<"Dame Edad:"; int main()

cin>>edad; pideFecha(); {

/* datos A;

cout<<"\nDia:";
A.pideDatos();
cin>>auxDatos.cumple.d;
A.muestraDat
cout<<"\nmes:";
os();
cin>>auxDatos.cumple.m;
getch();
cout<<"\nanio:";
return 0;
cin>>auxDatos.cumple.a; */
}
}
Pr6: //Programa que usa CLASS y
void datos:: muestraDatos (void) realiza un men.
{ clrscr();

#include<iost
cout<<"Nombre:"<<name;
ream>
cout<<"\nDireccion:"<<dir;
#include<coni
cout<<"\nDame Telefono:" <<tel;
o2.h> using
cout<<"\nDame Email:"<<email;
namespace
cout<<"\nDame Edad:"<<edad;

[Fecha
] 20
std; #define t };

5 int cont=0; void datos::pideFecha(void)


struct fecha {

cout<<"\nFecha de nacimiento:";
{
cout<<"Dia:";cin>>Agenda[cont].Na
int
c.d;
d,a;
cout<<"Mes:";cin>>Agenda[cont].N
char
ac.m;
m[30];
cout<<"Ao:";cin>>Agenda[cont].N
}; ac.a;

}
class datos
void datos::muestraFecha(int i)
{struct personales
{
{

cin.get(Agenda[cont].dir,80);

cout<<"\nDame Telefono:";
char
cin.get(l);//l es para limpiar buffer
name[50],dir[80],tel[30],email[50]
de teclado
; int edad; fecha
cin.get(Agenda[cont].tel,30);
Nac;
cout<<"\nDame Email:";
}Agenda[t]; cin.get(l);//l es para limpiar buffer

de teclado
void pideFecha
cin.get(Agenda[cont].email,50);
(void); void
cout<<"\nDame Edad:";
muestraFecha (int i); public:
cin>>Agenda[cont].edad;
void pideDatos (void); pideFecha();
void muestraDatos (void);
cont++; //contador se mueve ala
siguiente caja

[Fecha
] 20
vacia. /*

[Fecha
] 20
cout<<Agenda[i].Nac.d<<"/"<<Agenda[i].Nac.m<<
cin>>auxDatos.cumple.m;
"/"<<Agenda[i].Nac.a; cout<<"\nanio:";
//espara la segunda caja.
cin>>auxDatos.cumple.a; */
}
}
void datos::pideDatos(void)
void datos:: muestraDatos (void)
{
{clrscr();
char l;
int i;
//esto es para despues de la segunda caja
if(cont>0)
if(cont>0)
cin.get(l);
{ for(i=0;i<cont;i++)
cout<<"\nDame Nombre:";

{ cout<<"Nombre:"<<Agenda[i].name;
cin.get(Agenda[cont].name,50);
cout<<"\nDireccion:"<<Agenda[i].dir;
cout<<"\nDame Direccion:";
cout<<"\nDame Telefono:" <<Agenda[i].tel;
cin.get(l);//l es para limpiar buffer de teclado
cout<<"\nDame Email:"<<Agenda[i].email;
cout<<"\nDia:"; cin>>auxDatos.cumple.d; cout<<"\nmes:";

cout<<"\nDame Edad:"<<Agenda[i].edad; cout<<"\nFecha de

nacimiento:"; muestraFecha(i);

getch();

int main() { datos A; charr; do{ clrscr();

[Fecha
] 20
cout<<"1.introduce\n"; cout<<"2.mostrar\n";

cout<<"3.salir\n"; cout<<"Elige una opcion\n";

r=getch(); switch(r) {case'1':A.pideDatos();

break;

case'2':A.muestraDatos();

break;

case'3':break; default: cout<<"opcion no valida.....";

}while(r!='3'); getch(); return 0;

Pr7: // suma de numeros complejos con un auxiliar

#include<iostream> #include<conio2.h> using

namespace std; struct complejo

{ int r,i;

};

complejo pedir (void) { complejo aux; cout<<"\nreal:";

cin>>aux.r; cout<<"\nimag:";

cin>>aux.i; return (aux);

[Fecha
] 20
}

void mostrar (complejo x)

{ if(x.i>0) //para verificar o validar el signo del


numero

cout<<x.r<<"+"<<x.i<<"i"<<endl;

else
cout<<x.r<<x.i<<"i"<<endl;

complejo suma (complejo A,complejo B)

{ complejo aux; aux.r=A.r+B.r; aux.i=A.i+B.i;

return (aux);

int main() { complejo A,B,C; cout<<"dame complejo A=";

A=pedir(); cout<<"dame complejo A=";

B=pedir(); C=suma(A,B);

clrscr();

cout<<"A="; mostrar(A); cout<<"B="; mostrar(B);

cout<<"la suma es C="; mostrar(C); getch();

Pr7_1: suma de nmeros complejos con un auxiliar utilizando struct

// clase struct

[Fecha
] 20
#include<iostream> #include<conio2.h> using

namespace std; struct complejo

{ int r,i;

void pedir (void); void mostrar (void); void suma (complejo A,

complejo B);

};

void complejo::pedir(void) { complejo aux;

cout<<"\nreal:";

cin>>r; cout<<"\nimag:";

cin>>i;

if(i>0) //para verificar o validar el signo del Pr7_2: suma de


nmeros complejos
numero con un auxiliar utilizando
class
cout<<r<<"+"<<i<<"i"<<endl; // clase struct
else #include<iostrea
cout<<r<<i<<"i"<< m>
#include<conio2.
endl; h> using
namespace std;
}
void complejo:: suma (complejo A, complejo B) class complejo

void complejo:: mostrar (void )

{
{

r=A.r+B.r; i=A.i+B.i;

[Fecha
] 20
//return (aux);

int main() { complejo A,B,C; cout<<"\ndame complejo A=";

A.pedir();

cout<<"\ndame complejo B=";

B.pedir(); C.suma(A,B); system("cls"); cout<<"\nA=";

A.mostrar(); cout<<"\nB="; B.mostrar(); cout<<"\nla suma es

C="; C.mostrar(); getch(); return 0;

}
{ int r,i;

public:

void pedir (void); void mostrar (void); void suma (complejo A,

complejo B);

};

void complejo::pedir(void) { complejo aux;

cout<<"\nreal:"; cin>>r;

cout<<"\nimag:";

cin>>i;

void complejo:: mostrar (void )

if(i>0) //para verificar o validar el signo del numero

cout<<r<<"+"<<i<<"i"<<endl;

else cout<<r<<i<<"i"<<endl;

[Fecha
] 20
}
void complejo:: suma (complejo cout<<"\nElige
A, complejo B)
#include<iostream> opcion:";

{ #include<conio2.h> cout<<"\nB=";

opc=getch();
r=A.r+B.r; using
namespace std; B.mostrar();
i=A.i+B.i; class ohm switch(opc)

//return (aux); { float v,r,i;


cout<<"\nla suma es C=";
} public:
{ case '1': cout<<"\nDame
int main() char pedir (void);
resistencia:"; C.mostrar();
{ complejo A,B,C; void cin>>r; getch();
mostrar (char sal);
cout<<"\nDame corriente:";
cout<<"\ndame complejo A=";
}; return 0; cin>>i;

A.pedir(); char
ohm::pedir(void) }}

cout<<"\ndame complejo B="; v=i*r;


{ char opc; break;
B.pedir();
case '2':
cout<<"\n1.voltaj

e";

C.suma(A,B);

cout<<"\n2.resist cout<<"\nDame voltaje:";

encia"; cin>>v;

system("cls"); Pr8:Este programa realiza la


ley de
cout<<"\n3.corrie
cout<<"\nDame corriente:";
nte"; ohm.
cin>>i;
cout<<"\nA=";

cout<<"\n4.salir";

A.mostrar();

[Fecha
] 20
#include<iostrea

r=v/i; m>

break; #include<conio2.

h> using
case '3': cout<<"\nDame
voltaje:"; namespace std;

cin>>v; struct fecha

cout<<"\nDame
int d,a;
resistencia:";
cin>>r; i=v/r; char m[30];
break; };

case '4': break;

default: cout<<"\nopcion no class datos


valida....";
{ private: char
getch();
name[50],dir[80],tel[30],email[50];

} int edad;

return(opc); fecha Nac; void

} pideFecha (void);

void ohm::mostrar(char sal) void muestraFecha

(void); public:
{ switch(sal)

void pideDatos
{case'1':cout<<"\nvoltaje="<<v
<<endl; (void); void

break; muestraDatos (void); };

;
void datos::pideFecha(void)

{
}
cout<<"\nFecha de nacimiento:";
Pr5: //Programa que usa CLASS
cout<<"Dia:";cin>>Nac.d;

[Fecha
] 20
cout<<"Mes:";cin>>Nac.m; cin>>auxDatos.cumple.m;

cout<<"Ao:";cin>>Nac.a; cout<<"\nanio:";

cin>>auxDatos.cumple.a; */
}

void datos::muestraFecha(void) }

{ cout<<Nac.d<<"/"<<Nac.m<< void datos:: muestraDatos (void)


"/"<<Nac.a;
{ clrscr();
}

void datos::pideDatos(void) cout<<"Nombre:"<<name;

cout<<"\nDireccion:"<<dir;
{
cout<<"\nDame Telefono:" <<tel;
char l;
cout<<"\nDame Email:"<<email;
cout<<"Dame Nombre:";
cout<<"\nDame Edad:"<<edad;
cin.get(name,50);
cout<<"\nFecha de nacimiento:";
cout<<"Dame Direccion:";
muestraFecha();
cin.get(l);//l es para limpiar buffer

de teclado cin.get(dir,80);

cout<<"Dame Telefono:"; /*cout<<A.cumple.d;


cin.get(l);//l es para limpiar buffer cout<<"/"<<A.cumple.m;
de teclado cin.get(tel,30); cout<<"/"<<A.cumple.a;*/

cout<<"Dame Email:";

cin.get(l);//l es para limpiar buffer }


de teclado cin.get(email,50);

cout<<"Dame Edad:"; int main()


cin>>edad; pideFecha();
{
/*
datos A;
cout<<"\nDia:";

cin>>auxDatos.cumple.d; A.pideDatos

cout<<"\nmes:"; ();

[Fecha
] 20
A.muestraD {struct personales

atos(); {
getch();

return 0;
char
} name[50],dir[80],tel[30],email[5

Pr6: //Programa que usa CLASS 0]; int edad; fecha


y realiza un men.
Nac;

}Agenda[t];
#include<io

stream>
void pideFecha
#include<co
(void); void
nio2.h>
muestraFecha (int i);
using
public:
namespace

std; #define void pideDatos (void);

t 5 int void muestraDatos (void);

cont=0; };
struct fecha
void datos::pideFecha(void)

{ {

int cout<<"\nFecha de nacimiento:";

d,a; cout<<"Dia:";cin>>Agenda[cont].

char Nac.d;

m[30] cout<<"Mes:";cin>>Agenda[cont].

; Nac.m;

cout<<"Ao:";cin>>Agenda[cont].
};
Nac.a;

}
class datos

[Fecha
] 20
void datos::muestraFecha(int i) A;

{ char r;

do{
cin.get(Agenda[cont].dir,80);

cout<<"\nDame Telefono:"; clrscr();

cin.get(l);//l es para limpiar

buffer de teclado cout<<"1.introduce\n";

cin.get(Agenda[cont].tel,30); cout<<"2.mostrar\n";

cout<<"\nDame Email:"; cout<<"3.salir\n";

cin.get(l);//l es para limpiar cout<<"Elige una

buffer de teclado opcion\n";

cin.get(Agenda[cont].email,50); r=getch(); switch(r)

cout<<"\nDame Edad:"; {case'1':A.pideDatos();

cin>>Agenda[cont].edad;
break;
pideFecha();
case'2':A.muestraDatos();

cont++; //contador se mueve ala break;


siguiente caja
case'3':break; default:
Edad:"<<Agenda[i].edad;
cout<<"opcion no valida.....";
cout<<"\nFecha de

nacimiento:"; }

muestraFecha(i); }

while(r!='3');
getch();
getch();
}
return 0;
}
}
}

int

main()

{ datos

[Fecha
] 20
cin>>aux.i;

return

(aux);

void mostrar (complejo x)


Pr7: // suma de numeros
complejos con un auxiliar { if(x.i>0) //para verificar o
validar el signo del
numero
#include<iostr
cout<<x.r<<"+"<<x.i<<"i"<<e
eam>
ndl;
#include<coni
else
o2.h> using cout<<x.r<<x.i<<"i"<<endl;

namespace }
std; struct complejo suma (complejo
A,complejo B)
complejo
{ complejo aux;
{ int r,i; aux.r=A.r+B.r;
}; aux.i=A.i+B.i;
complejo pedir return (aux);
(void) { complejo
}
aux;
int main() { complejo
cout<<"\nreal:";
A,B,C; cout<<"dame
cin>>aux.r;
complejo A=";
cout<<"\nimag:";

A=pedir();

cout<<"dame complejo

A=";

[Fecha
] 20
B=pedir(); suma (complejo A,

C=suma(A,B); complejo B);

clrscr(); };

Pr7_1: suma de nmeros void


if(i>0) //para verificar o validar el signo del Pr7_2: suma de
nmeros complejos
numero con un auxiliar utilizando
class
cout<<r<<"+"<<i<<"i"<<endl; // clase struct
else #include<iostrea
cout<<r<<i<<"i"<< m>
#include<conio2.
endl; h> using
namespace std;
}
void complejo:: suma (complejo A, complejo B) class complejo
complejos con un auxiliar complejo::pedir(
utilizando struct
void)
// clase struct { complejo

aux;
#include<iostr cout<<"\nreal:";
eam>
cin>>r;
#include<coni
cout<<"\nimag:"
o2.h> using
;
namespace

std; struct cin>>i;

complejo

}
{ int r,i;
void complejo:: mostrar (void )
void pedir (void); void
{
mostrar (void); void
{

[Fecha
] 20
r=A.r+B.r; { complejo

i=A.i+B.i; aux;

cout<<"\nreal:";
//return (aux);
cin>>r;
}

int main() { complejo A,B,C; cout<<"\nimag:";

cout<<"\ndame complejo A="; cin>>i;

A.pedir();
}
cout<<"\ndame complejo B=";
void complejo:: mostrar (void )
B.pedir(); C.suma(A,B);
{
system("cls");
if(i>0) //para verificar o
cout<<"\nA="; A.mostrar(); validar el signo del numero
cout<<"\nB="; B.mostrar();

cout<<"\nla suma es C="; cout<<r<<"+"<<i<<"i"<<endl;

C.mostrar(); getch(); else

return 0; cout<<r<<i<<"i"

<<endl;
}
{ int r,i;
}
public: APUNTADORES.

void pedir (void); void #include<iostream>

mostrar (void); void #include<conio2.h>

suma (complejo A, using namespace std;

complejo B); class Datos

{
};
struct fecha
void
{ int d,a;
complejo::pedir(

void) char m[20];

[Fecha
] 20
}f,*pf; p->pedir();

public: p->mostrar();

Datos(void); getch();

void pedir(void); return 0;

void mostrar(void); }

};

Datos::Datos(void)

{ pf=&f;

void Datos::pedir(void)

{
Este programa nos dice el mayor y
cout<<"dame una fecha:\n"; el menos mediante valos.

cout<<"dia:"; #include<iostream>

cin>>pf->d; //cin>>f.d; #include<conio2.h>

cout<<"mes:"; using namespace std;

cin>>pf->m; template<class i>

cout<<"ao:"; i compara(i x,i y)

cin>>pf->a; { if(x>y)

} return (x);

void Datos::mostrar(void) else

{ cout<<"fecha es: return(y);


"<<f.d<<""<<f.m<<""<<f.a<<en
dl; }

} int main()

int main () { double a,b;

{ Datos Prueba,*p; cout<<"el mayor


es:"<<compara(100,200)<<endl;
p=&Prueba; //p apunta al objeto
prueba tipo clase

[Fecha
] 20
cout<<"Dame dos getch();
numeros:";
return 0;
cin>>a>>b;
}
cout<<"el mayor
es:"<<compara(a,b)<<endl;

getch();

return 0;

//arreglos

//usando template logramos


obtener los numeros mayor, y //herencia multiple
menor
#include<iostream>
#include<iostream>
#include<conio2.h>
#include<conio2.h>
#include<string.h>
using namespace std;
using namespace std;
template<class i,class f>
class monitor
void muestraArray(f*array,i cont)
{ public:
{ int j;
monitor(char*,long,int,int);
for(j=0;j<cont; j++)
void muestraMonitor(void);
cout<<array[j]<<"-";
int resx,resy;
cout<<endl;
private:char tipo[30];
}
long colores;
int main()
};
{ float
precios[]={1.1,2.2,3.3,4.4}; monitor::monitor(char*tipo,long
colores,int resx,int resy)
int
pag[]={10,20,30,4,0,50,60,70}; {strcpy(monitor::tipo,tipo);

muestraArray(precios,4); monitor::colores= colores;

muestraArray(pag,7); monitor::resx=resx;

[Fecha
] 20
monitor::resy=resy; class computadora:public
monitor,public tarjeta//clase
}
{public:
void
monitor::muestraMonitor(void)
computadora(char*,int,char*,char*,
{cout<<"tipo de long,int,int,int,int,int);///////
video:"<<tipo<<"colores"
void muestraCompu(void);

<<colores<<"resolucion:"<<resx
<<"x"
private:
<<resy<<endl;
char marca[50];
}
int disco duro;
class tarjeta //clase 2
char perifericos[88];
{ public:
};
tarjeta(int,int,int);
computadora::computadora(char*
void muestraTarjeta(void); marca,int disco
duro,char*perifericos,char*tipo,lon
private: g colores,int resx,int resy,int
procesador,int velocidad,int
int memoria)
procesador,velocidad,memoria;
:
}; monitor(tipo,colores,resx,resy),tarj
eta(procesador,velocidad,memoria
tarjeta::tarjeta(int procesador,int
)
velocidad,int memoria)
{strcpy(computadora::marca,marc
{tarjeta::procesador=procesador;
a);
tarjeta::velocidad=velocidad;
strcpy(computadora::perfifericos,p
tarjeta::memoria=memoria; eriferericos);

} computadora::disco_duro=disco_d
uro;
void tarjeta:: muestraTarjeta(void)
}
cont<<"\nprocesador:"<<procesa
dor<<"\nVelocidad:"<<velocidad< void
<"\nMemoria:"<<memoria<<endl; computadora::muestraCompu(void
)
}

[Fecha
] 20
{coun<<"\nMarca:"<<marca<<en monitor(char*,long,int,int);
dl<<"\nDisco
duro:"<<disco_duro<<"\nPeriferic void muestraMonitor(void);
os:"<<perifericos<<endl;
int resx,resy;
muestraMonitor();
private:char tipo[30];
muestraTarjeta();
long colores;
getch();
};
}
monitor::monitor(char*tipo,long
int main() colores,int resx,int resy)

{computadora {strcpy(monitor::tipo,tipo);
NVA("DELL",500,"DVD-
RW","HD",16000,1200,800,2,2,4); monitor::colores= colores;

NVA.muestraCompu(); monitor::resx=resx;

getch(); monitor::resy=resy;

return 0; }

} void
monitor::muestraMonitor(void)

{cout<<"tipo de
video:"<<tipo<<"colores"

<<colores<<"resolucion:"<<resx
<<"x"

<<resy<<endl;

}
//herencia multiple
class tarjeta //clase 2
#include<iostream>
{ public:
#include<conio2.h>
tarjeta(int,int,int);
#include<string.h>
void muestraTarjeta(void);
using namespace std;
private:
class monitor
int
{ public: procesador,velocidad,memoria;

[Fecha
] 20
}; :
monitor(tipo,colores,resx,resy),tarj
tarjeta::tarjeta(int procesador,int eta(procesador,velocidad,memoria
velocidad,int memoria) )
{tarjeta::procesador=procesador; {strcpy(computadora::marca,marc
a);
tarjeta::velocidad=velocidad;
strcpy(computadora::perfifericos,p
tarjeta::memoria=memoria; eriferericos);
} computadora::disco_duro=disco_d
uro;
void tarjeta:: muestraTarjeta(void)
}
cont<<"\nprocesador:"<<procesa
dor<<"\nVelocidad:"<<velocidad< void
<"\nMemoria:"<<memoria<<endl; computadora::muestraCompu(void
)
}
{coun<<"\nMarca:"<<marca<<en
class computadora:public
dl<<"\nDisco
monitor,public tarjeta//clase
duro:"<<disco_duro<<"\nPeriferic
{public: os:"<<perifericos<<endl;

muestraMonitor();
computadora(char*,int,char*,char*,
muestraTarjeta();
long,int,int,int,int,int);///////
getch();
void muestraCompu(void);
}

int main()
private:
{computadora
char marca[50];
NVA("DELL",500,"DVD-
int disco duro; RW","HD",16000,1200,800,2,2,4);

char perifericos[88]; NVA.muestraCompu();

}; getch();

computadora::computadora(char* return 0;
marca,int disco
}
duro,char*perifericos,char*tipo,lon
g colores,int resx,int resy,int
procesador,int velocidad,int
memoria)

[Fecha
] 20
//programa de herencia simple.

#include<iostream>

#include<conio2.h>

#include<string.h>

using namespace std;

class personales //claase principal,


#include<iostream> clase base.

#include<conio2.h> { char name[50],dir[80],tel[30];

using namespace std; public:

int compara(int x,int y) personales(char *,char*,


char*);
{ if(x>y)
void mostrar (void);
return (x);
};
else
personales::personales(char*name,
return(y); char*dir,char*tel)
} {strcpy(personales::name,name);
int main() strcpy(personales::dir,dir);
{ strcpy(personales::tel,tel);
cout<<"el mayor }
es:"<<compara(45,25)<<endl;
void personales:: mostrar(void)
getch();
{ clrscr();
return 0;
cout<<"Nombre:"<<name<<endl
}
<<"Direccion:"<<dir<<endl

<<"Telefono:"<<tel<<endl;

class alumno:personales //clase


heredada

{char
carrera[40],turno[20],horario[40];

[Fecha
] 20
public:

alumno };
(char*,char*,char*,char *,char*,
char*); docente::docente(char*name,char*
dir,char*tel)
void mostrarAlumno(void);
{strcpy(docente::puesto,puesto);
};
strcpy(docente::turno,turno);
alumno::alumno(char*carrera,char
*turno,char*horario,char*name,cha strcpy(docente::horario,horario);
r*dir,char*tel):personales(name,dir
,tel) strcpy(docente::salario,salario);

{strcpy(alumno::carrera,carrera); }

strcpy(alumno::turno,turno); void
docente::muestaDocente(void);
strcpy(alumno::horario,horario);
mostrar();
}
{
void alumno::personales
cout<<"puesto:"<<puesto<<endl
{ mostrar();
<<"turno:"<<turno<<endl
clrscr();
<<"horario:"<<horario<<endl;
cout<<"carrera:"<<carrera<<endl
<<"salario:"<<salario<<endl;
<<"turno:"<<turno<<endl
}
<<"horario:"<<horario<<endl;
int main()
}
{
class
docente::muestaDocente(void) docente
profe("america","desconocida","45
{ 6123","supervisora","mixto","7:00-
20:00",10000.0);
char
puesto[40],turno[20],horario[40]; Profe.muestraDocente();

float salario;

public:

docente(char*,char*,char*,char*,ch //personales A("aby","av.del


ar*,char*,float*); radar","2014300175");

[Fecha
] 20
// alumno ICE("angel","san
martin","2014658","ICE","mat","7.
89");

// A.mostrar();

//getch();

// ICE.mostrarAlumno();

getch();

return 0;

[Fecha
] 20
PROYECTOS

[Fecha
] 20
Programa del juego Pacman que permite al usuario jugar, comindose las bolitas, realizado con
memoria dinmica.
//ojitos
#include <iostream> setcolor(BLACK);
#include <graphics.h> setfillstyle(1,BLACK);
#include<stdlib.h> pieslice(x-3,y,0,360,2);
using namespace std; pieslice(x+3,y,0,360,2);
class juegos }
{ //Declaracin de las funciones void juegos::fantasma3(void)
public: { int x=265, y=315;
void PacmanIz(int x, int y); //cuerpo del fantasma
void PacmanIzC(int x, int y); setcolor( LIGHTMAGENTA);
void PacmanDer(int x, int y); setfillstyle(1, LIGHTMAGENTA);
void PacmanDerC(int x, int y); pieslice(x,y,0,360,8);
void PacmanArr(int x, int y); bar(x-8,y,x+8,y+20);
void PacmanArrC(int x, int y); //onditas del color del fondo
void PacmanAba(int x, int y); setcolor(BLACK);
void PacmanAbaC(int x, int y); setfillstyle(1,BLACK);
void fantasma1(void); pieslice(x,y+20,0,360,4);
void fantasma2(void); pieslice(x+8,y+20,0,360,4);
void fantasma3(void); pieslice(x-8,y+20,0,360,4);
void bolitas(); //ojitos
void escenario(); setcolor(WHITE);
}; setfillstyle(1,WHITE);
void juegos::fantasma1(void) pieslice(x-3,y,0,360,2);
{ int x=235, y=290; pieslice(x+3,y,0,360,2);
//cuerpo del fantasma }
setcolor(LIGHTBLUE); void juegos::escenario(void)
setfillstyle(1,LIGHTBLUE); {
pieslice(x,y,0,360,8); setcolor(WHITE);
bar(x-8,y,x+8,y+20); setfillstyle(1,WHITE);
//onditas del color del fondo bar(3,61,477,62);
setcolor(BLACK); bar(5,63,231,64);//mitad arriba
setfillstyle(1,BLACK); bar(241,63,475,64);//tambien mitad arriba
pieslice(x,y+20,0,360,4); bar(3,589,477,590);//abajo 1
pieslice(x+8,y+20,0,360,4); bar(5,587,475,588);//abajo dos
pieslice(x-8,y+20,0,360,4); bar(3,298,83,299);
//ojitos bar(3,300,84,301);
setcolor(WHITE); bar(3,343,83,344);
setfillstyle(1,WHITE); bar(3,341,84,342);
pieslice(x-3,y,0,360,2); bar(3,218,83,219);
pieslice(x+3,y,0,360,2); bar(3,216,84,217);
} bar(3,423,83,424);
void juegos::fantasma2(void) bar(3,425,84,426);
{ int x=205, y=315; bar(3,61,4,218);
//cuerpo del fantasma bar(5,63,6,216);
setcolor(LIGHTGREEN); bar(3,423,4,589);
setfillstyle(1,LIGHTGREEN); bar(5,425,6,500);
pieslice(x,y,0,360,8); bar(5,510,6,587);
bar(x-8,y,x+8,y+20); bar(82,218,83,298);
//onditas del color del fondo bar(84,217,85,300);
setcolor(BLACK); bar(82,343,83,423);
setfillstyle(1,BLACK); bar(84,342,85,425);
pieslice(x,y+20,0,360,4); bar(4,500,24,501);
pieslice(x+8,y+20,0,360,4); bar(4,510,24,511);
pieslice(x-8,y+20,0,360,4); bar(24,500,25,511);
bar(231,63,232,121);//mitad tope arriba rectangle(397,350,477,350);
bar(241,63,242,121); rectangle(397,420,477,420);
bar(231,121,242,122); rectangle(394,422,474,422);
rectangle(36,93,84,121);//primeros rectangle(394,219,394,300);
rectangulo rectangle(396,221,396,298);
rectangle(114,93,197,121); rectangle(394,348,394,423);
rectangle(394,93,444,121);//segundos rectangle(397,348,397,423);
rectangulo rectangle(457,503,475,513);
rectangle(274,93,364,121); setcolor(BLACK);
rectangle(36,151,84,181);//abajo line(475,503,475,513);
rectangulo line(115,474,133,474);
rectangle(394,151,444,181); line(345,474,363,474);
rectangle(114,151,134,298); line(165,298,183,298);
rectangle(134,219,198,239); line(285,298,303,298);
setcolor(BLACK); line(165,343,183,343);
line(134,220,134,238); line(285,343,303,343);
line(334,220,334,238); line(395,474,413,474);
setcolor(WHITE); line(334,220,334,238);
setfillstyle(1,WHITE); line(225,181,243,181);
line(394,218,474,218); line(225,423,243,423);
line(396,220,477,220); line(225,524,243,524);
rectangle(334,151,354,298); line(65,474,83,474);
rectangle(274,219,334,239); }
rectangle(164,151,304,181); void juegos::bolitas(void)
rectangle(224,181,244,239); { int x=20, y=80;
rectangle(114,344,134,424); setcolor(WHITE);
rectangle(334,344,354,424); setfillstyle(1,WHITE);
rectangle(164,393,304,423); pieslice(x,y,0,360,4);
rectangle(224,423,244,473); pieslice(x+40,y,0,360,4);
rectangle(164,504,304,524); pieslice(x+80,y,0,360,4);
rectangle(224,524,244,559); pieslice(x+120,y,0,360,4);
rectangle(114,454,198,474); pieslice(x+160,y,0,360,4);
rectangle(274,454,364,474); pieslice(x+200,y,0,360,4);
rectangle(34,454,84,474); pieslice(x+240,y,0,360,4);
rectangle(64,474,84,514); pieslice(x+280,y,0,360,4);
rectangle(34,544,134,559); pieslice(x+320,y,0,360,4);
rectangle(334,544,444,559); pieslice(x+360,y,0,360,4);
rectangle(394,474,414,514); pieslice(x+400,y,0,360,4);
rectangle(394,454,444,474); pieslice(x+440,y,0,360,4);
rectangle(164,278,204,298); pieslice(x,y+30,0,360,4);
rectangle(264,278,304,298); pieslice(x,y+60,0,360,4);
rectangle(164,298,184,343); pieslice(x,y+90,0,360,4);
rectangle(164,343,304,363); pieslice(x,y+120,0,360,4);
rectangle(284,298,304,343); pieslice(x+40,y+60,0,360,4);
rectangle(284,298,304,343); pieslice(x+80,y+60,0,360,4);
rectangle(344,474,364,514); pieslice(x+120,y+60,0,360,4);
rectangle(114,474,134,514); pieslice(x+160,y+60,0,360,4);
rectangle(474,63,474,218); pieslice(x+200,y+60,0,360,4);
rectangle(477,61,477,220); pieslice(x+240,y+60,0,360,4);
rectangle(474,423,474,503); pieslice(x+280,y+60,0,360,4);
rectangle(477,420,477,513); pieslice(x+320,y+60,0,360,4);
rectangle(474,513,474,587); pieslice(x+360,y+60,0,360,4);
rectangle(477,513,477,589); pieslice(x+400,y+60,0,360,4);
rectangle(396,298,477,298); pieslice(x+440,y+60,0,360,4);
rectangle(394,300,477,300); pieslice(x+80,y+30,0,360,4);
rectangle(395,348,477,348); pieslice(x+200,y+30,0,360,4);
pieslice(x+240,y+30,0,360,4); pieslice(x+60,y+445,0,360,4);
pieslice(x+360,y+30,0,360,4); pieslice(x+90,y+445,0,360,4);
pieslice(x+440,y+30,0,360,4); pieslice(x+120,y+445,0,360,4);
pieslice(x+40,y+120,0,360,4); pieslice(x,y+445,0,360,4);
pieslice(x+80,y+120,0,360,4); pieslice(x+80,y+160,0,360,4);
pieslice(x+130,y+120,0,360,4); pieslice(x+80,y+200,0,360,4);
pieslice(x+160,y+120,0,360,4); pieslice(x+80,y+240,0,360,4);
pieslice(x+190,y+120,0,360,4); pieslice(x+80,y+280,0,360,4);
pieslice(x+190,y+150,0,360,4); pieslice(x+80,y+320,0,360,4);
pieslice(x+190,y+180,0,360,4); pieslice(x+80,y+360,0,360,4);
pieslice(x+130,y+180,0,360,4); pieslice(x+80,y+400,0,360,4);
pieslice(x+160,y+180,0,360,4); pieslice(x+50,y+240,0,360,4);
pieslice(x+190,y+180,0,360,4); pieslice(x+20,y+240,0,360,4);
pieslice(x+215,y+180,0,360,4); pieslice(x-10,y+240,0,360,4);
pieslice(x+245,y+180,0,360,4); pieslice(x+105,y+240,0,360,4);
pieslice(x+275,y+180,0,360,4); pieslice(x+130,y+240,0,360,4);
pieslice(x+300,y+180,0,360,4); pieslice(x+325,y+240,0,360,4);
pieslice(x+300,y+210,0,360,4); pieslice(x+350,y+240,0,360,4);
pieslice(x+300,y+240,0,360,4); pieslice(x+380,y+240,0,360,4);
pieslice(x+300,y+270,0,360,4); pieslice(x+410,y+240,0,360,4);
pieslice(x+300,y+300,0,360,4); pieslice(x+440,y+240,0,360,4);
pieslice(x+300,y+330,0,360,4); pieslice(x+350,y+270,0,360,4);
pieslice(x+300,y+360,0,360,4); pieslice(x+350,y+300,0,360,4);
pieslice(x+270,y+360,0,360,4); pieslice(x+350,y+330,0,360,4);
pieslice(x+240,y+360,0,360,4); pieslice(x+350,y+210,0,360,4);
pieslice(x+300,y+360,0,360,4); pieslice(x+350,y+180,0,360,4);
pieslice(x+330,y+360,0,360,4); pieslice(x+350,y+150,0,360,4);
pieslice(x+360,y+360,0,360,4); pieslice(x+350,y+120,0,360,4);
pieslice(x+390,y+360,0,360,4); pieslice(x+350,y+80,0,360,4);
pieslice(x+415,y+360,0,360,4); pieslice(x+380,y+120,0,360,4);
pieslice(x+440,y+360,0,360,4); pieslice(x+410,y+120,0,360,4);
pieslice(x+440,y+385,0,360,4); pieslice(x+440,y+120,0,360,4);
pieslice(x+440,y+410,0,360,4); pieslice(x+440,y+90,0,360,4);
pieslice(x+410,y+410,0,360,4); pieslice(x+300,y+120,0,360,4);
pieslice(x+410,y+430,0,360,4); pieslice(x+270,y+120,0,360,4);
pieslice(x+410,y+450,0,360,4); pieslice(x+240,y+120,0,360,4);
pieslice(x+440,y+450,0,360,4); pieslice(x+300,y+90,0,360,4);
pieslice(x+440,y+470,0,360,4); pieslice(x+130,y+90,0,360,4);
pieslice(x+440,y+490,0,360,4); pieslice(x+80,y+90,0,360,4);
pieslice(x+410,y+490,0,360,4); pieslice(x+130,y+210,0,360,4);
pieslice(x+380,y+490,0,360,4); pieslice(x+130,y+270,0,360,4);
pieslice(x+350,y+490,0,360,4); pieslice(x+130,y+300,0,360,4);
pieslice(x+320,y+490,0,360,4); pieslice(x+130,y+330,0,360,4);
pieslice(x+290,y+490,0,360,4); pieslice(x+130,y+360,0,360,4);
pieslice(x+260,y+490,0,360,4); pieslice(x+160,y+360,0,360,4);
pieslice(x+230,y+490,0,360,4); pieslice(x+190,y+360,0,360,4);
pieslice(x+200,y+490,0,360,4); pieslice(x+190,y+385,0,360,4);
pieslice(x+170,y+490,0,360,4); pieslice(x+190,y+410,0,360,4);
pieslice(x+140,y+490,0,360,4); pieslice(x+160,y+410,0,360,4);
pieslice(x+110,y+490,0,360,4); pieslice(x+130,y+410,0,360,4);
pieslice(x+80,y+490,0,360,4); pieslice(x+220,y+410,0,360,4);
pieslice(x+50,y+490,0,360,4); pieslice(x+250,y+410,0,360,4);
pieslice(x+25,y+490,0,360,4); pieslice(x+280,y+410,0,360,4);
pieslice(x,y+490,0,360,4); pieslice(x+310,y+410,0,360,4);
pieslice(x,y+465,0,360,4); pieslice(x+310,y+430,0,360,4);
pieslice(x+30,y+445,0,360,4); pieslice(x+310,y+450,0,360,4);
pieslice(x+335,y+450,0,360,4); setfillstyle(1,YELLOW);
pieslice(x+360,y+450,0,360,4); pieslice(x,y,0,360,10);
pieslice(x+385,y+450,0,360,4); }
pieslice(x+360,y+420,0,360,4);
pieslice(x+360,y+390,0,360,4); void juegos::PacmanAba(int x, int y)
pieslice(x+160,y+300,0,360,4); {
pieslice(x+190,y+300,0,360,4); setcolor(YELLOW);
pieslice(x+220,y+300,0,360,4); setfillstyle(1,YELLOW);
pieslice(x+250,y+300,0,360,4); pieslice(x,y,315,225,10);
pieslice(x+275,y+300,0,360,4); }
pieslice(x,y+360,0,360,4); void juegos::PacmanAbaC(int x, int y)
pieslice(x+30,y+360,0,360,4); {
pieslice(x+55,y+360,0,360,4); setcolor(YELLOW);
pieslice(x,y+385,0,360,4); setfillstyle(1,YELLOW);
pieslice(x,y+410,0,360,4); pieslice(x,y,0,360,10);
pieslice(x+30,y+410,0,360,4); }
pieslice(x+130,y+465,0,360,4); int main( )
pieslice(x+160,y+465,0,360,4); {
pieslice(x+190,y+465,0,360,4); juegos m; //Creacin del objeto
pieslice(x+240,y+465,0,360,4); char f;
pieslice(x+270,y+465,0,360,4); int x=220,y=479;
pieslice(x+300,y+465,0,360,4); //Creacion de los punteros
} void *PacmanIz;
void juegos::PacmanIz(int x, int y) void *PacmanIzC;
{ void *PacmanDer;
setcolor(YELLOW); void *PacmanDerC;
setfillstyle(1,YELLOW); void *PacmanArr;
pieslice(x,y,225,135,10); void *PacmanArrC;
} void *PacmanAba;
void juegos::PacmanIzC(int x, int y) void *PacmanAbaC;
{ initwindow( 480 , 640 , "Pacman 1.0" );
setcolor(YELLOW); //Asignacin de memoria dinmica
setfillstyle(1,YELLOW); m.PacmanDer(x,y);
pieslice(x,y,0,360,10); PacmanDer=malloc(imagesize(x-15,y-
} 10,x+9,y+10));
void juegos::PacmanDer(int x, int y) getimage(x-15,y-10,x+9,y+10,PacmanDer);
{ cleardevice();
setcolor(YELLOW); m.PacmanDerC(x,y);
setfillstyle(1,YELLOW); PacmanDerC=malloc(imagesize(x-15,y-
pieslice(x,y,45,315,10); 10,x+9,y+10));
} getimage(x-15,y-
void juegos::PacmanDerC(int x, int y) 10,x+9,y+10,PacmanDerC);
{ cleardevice();
setcolor(YELLOW); m.PacmanIz(x,y);
setfillstyle(1,YELLOW); PacmanIz=malloc(imagesize(x-12,y-
pieslice(x,y,0,360,10); 10,x+11,y+12));
} getimage(x-12,y-10,x+11,y+12,PacmanIz);
void juegos::PacmanArr(int x, int y) cleardevice();
{ m.PacmanIzC(x,y);
setcolor(YELLOW); PacmanIzC=malloc(imagesize(x-12,y-
setfillstyle(1,YELLOW); 10,x+11,y+12));
pieslice(x,y,135,45,10); getimage(x-12,y-
} 10,x+11,y+12,PacmanIzC);
void juegos::PacmanArrC(int x, int y) cleardevice();
{ m.PacmanArr(x,y);
setcolor(YELLOW);
PacmanArr=malloc(imagesize(x-10,y- putimage(x,y--,PacmanArr,OR_PUT);
10,x+12,y+12)); putimage(x,y--,PacmanArr,AND_PUT);
getimage(x-10,y- }
10,x+12,y+12,PacmanArr); break;
cleardevice(); //Abajo
m.PacmanArrC(x,y); case 80: if(y<560)
PacmanArrC=malloc(imagesize(x-10,y- {
10,x+12,y+12)); putimage(x,y,PacmanAba,OR_PUT);
getimage(x-10,y- putimage(x,y++,PacmanAba,AND_PUT);
10,x+12,y+12,PacmanArrC); delay(100);
cleardevice(); putimage(x,y++,PacmanAbaC,OR_PUT);
m.PacmanAba(x,y); putimage(x,y++,PacmanAbaC,AND_PUT);
PacmanAba=malloc(imagesize(x-12,y- delay(100);
12,x+12,y+10)); putimage(x,y++,PacmanAba,OR_PUT);
getimage(x-12,y- putimage(x,y++,PacmanAba,AND_PUT);
12,x+12,y+10,PacmanAba); }
cleardevice(); break;
m.PacmanAbaC(x,y); //Izquierda
PacmanAbaC=malloc(imagesize(x-12,y- case 75: if(x>10)
12,x+12,y+10)); {
getimage(x-12,y- putimage(x,y,PacmanIz,OR_PUT);
12,x+12,y+10,PacmanAbaC); putimage(x--,y,PacmanIz,AND_PUT);
cleardevice(); delay(100);
//Llamado de las funciones putimage(x--,y,PacmanIzC,OR_PUT);
m.escenario(); putimage(x--,y,PacmanIzC,AND_PUT);
m.fantasma1(); delay(100);
m.fantasma2(); putimage(x--,y,PacmanIz,OR_PUT);
m.fantasma3(); putimage(x--,y,PacmanIz,AND_PUT);
m.bolitas(); }
putimage(x,y,PacmanDer,OR_PUT); break;
putimage(x,y,PacmanDer,AND_PUT); //Derecha
do case 77: if(x<448)
{ {
getch(); putimage(x,y,PacmanDer,OR_PUT);
f=getch(); putimage(x++,y,PacmanDer,AND_PUT);
switch (f) delay(100);
{ putimage(x++,y,PacmanDerC,OR_PUT);
//Arriba putimage(x++,y,PacmanDerC,AND_PUT);
case 72: if (y>65) delay(100);
putimage(x++,y,PacmanDer,OR_PUT);
{ putimage(x,y,PacmanArr,OR putimage(x++,y,PacmanDer,AND_PUT);
_PUT); //Corte }
putimage(x,y--,PacmanArr,AND_PUT);//Peg break;
a }//Fin del Switch
delay(100); }while (f!=27);
putimage(x,y--,PacmanArrC,OR_PUT); getch();
putimage(x,y--,PacmanArrC,AND_PUT); closegraph( );
delay(100); return( 0 );
}
Programa sobre una calculadora que realiza operaciones bsicas (suma,
resta, multiplicacin y divisin). Utilizando plantillas en l.

#include <iostream> pieslice(261,220,0,360,25);


#include <graphics.h> pieslice(60,290,0,360,25);
using namespace std; pieslice(127,290,0,360,25);
template <class T> pieslice(194,290,0,360,25);
class calculadora pieslice(261,290,0,360,25);
{ T num1; pieslice(60,360,0,360,25);
public: pieslice(127,360,0,360,25);
void fondo(void); pieslice(194,360,0,360,25);
calculadora (T); pieslice(261,360,0,360,25);
calculadora (void); setcolor(BLACK);
void muestra (void); bar3d(30,30,290,90,0,1);
T operator < (T); rectangle(30,30,290,90);
calculadora operator + (calculadora); setfillstyle(1,WHITE);
calculadora operator - (calculadora); circle(60,150,25);
calculadora operator * (calculadora); circle(127,150,25);
calculadora operator / (calculadora); circle(194,150,25);
}; circle(261,150,25);
void fondo(void) circle(60,220,25);
{ setbkcolor(LIGHTGRAY); circle(127,220,25);
cleardevice(); circle(194,220,25);
setcolor(WHITE); circle(261,220,25);
pieslice(60,150,0,360,25); circle(60,290,25);
pieslice(127,150,0,360,25); circle(127,290,25);
pieslice(194,150,0,360,25); circle(194,290,25);
pieslice(261,150,0,360,25); circle(261,290,25);
pieslice(60,220,0,360,25); circle(60,360,25);
pieslice(127,220,0,360,25); circle(127,360,25);
pieslice(194,220,0,360,25); circle(194,360,25);
circle(261,360,25); closegraph( );
setbkcolor(WHITE); return( 0 ); }
settextstyle(6,0,4); template <class T>
outtextxy(50,135,"1"); T calculadora<T>::operator < (T f)
outtextxy(117,135,"2"); {
outtextxy(184,135,"3"); calculadora::num1=ingresa<float>();
outtextxy(251,135,"+"); return f;
outtextxy(50,205,"4"); }
outtextxy(117,205,"5"); template <class T>
outtextxy(184,205,"6"); void calculadora<T>::muestra(void){
outtextxy(251,205,"-"); char aux1[10];
outtextxy(50,275,"7"); sprintf(aux1,"%.2f",num1);
outtextxy(117,275,"8"); bar(40,40,285,85);
outtextxy(184,275,"9"); outtextxy(200,45,aux1);}
outtextxy(251,275,"*"); template <class T>
outtextxy(50,345,"0"); calculadora<T> calculadora<T>::operator +
outtextxy(117,345,"."); (calculadora a){
outtextxy(184,345,"="); calculadora<float> c;
outtextxy(251,345,"/"); calculadora::num1=ingresa<float>();
setbkcolor(LIGHTGRAY); c.num1=num1+a.num1;
setcolor(RED); return c;}
settextstyle(1,0,2); template <class T>
outtextxy(30,6,"Casio"); calculadora<T> calculadora<T>::operator -
settextstyle(5,0,1); (calculadora a){
outtextxy(190,6,"fx~01 Plus"); } calculadora<float> c;
char op; calculadora::num1=ingresa<float>();
template <class T> c.num1=a.num1-num1;
T ingresa (void); return c;}
int main( ) template <class T>
{ calculadora<T> calculadora<T>::operator
initwindow( 320 , 410 , "Calculadora" ); *(calculadora a){
fondo(); calculadora<float> c;
calculadora<float> a1,a2,a3; calculadora::num1=ingresa<float>();
do{ c.num1=num1*a.num1;
a1<op; return c;}
switch(op){ template <class T>
case '+': calculadora<T> calculadora<T>::operator /
a3=a2+a1; (calculadora a){
a3.muestra(); calculadora<float> c;
break; calculadora::num1=ingresa<float>();
case '-': c.num1=a.num1/num1;
a3=a2-a1; return c;}
a3.muestra(); template <class T>
break; calculadora<T>::calculadora(T num)
case '*': {num1=num;}
a3=a2*a1; template <class T>
a3.muestra(); calculadora<T>::calculadora(void)
break; {num1=0;}
case '/': template <class T>
a3=a2/a1; T ingresa (void)
a3.muestra(); { int opcion;
break; char aux[8];
case '=': T num;
break; } int c=0;
}while (op!=27); do{
getch(); opcion=getch();
if (c<=8) c++;
{ switch (opcion) break;
{ case'0': case'8':
aux[c]=opcion; aux[c]=opcion;
aux[c+1]='\0'; aux[c+1]='\0';
fondo(); fondo();
outtextxy(250-(c*20),45,aux); outtextxy(250-(c*20),45,aux);
c++; c++;
break; break;
case'1': case'9':
aux[c]=opcion; aux[c]=opcion;
aux[c+1]='\0'; aux[c+1]='\0';
fondo(); fondo();
outtextxy(250-(c*20),45,aux); outtextxy(250-(c*20),45,aux);
c++; c++;
break; break;
case'2': case'.':
aux[c]=opcion; aux[c]=opcion;
aux[c+1]='\0'; aux[c+1]='\0';
fondo(); fondo();
outtextxy(250-(c*20),45,aux); outtextxy(250-(c*20),45,aux);
c++; c++;
break; break;
case'3': default:
aux[c]=opcion; if (opcion=='+'||opcion=='-'||opcion=='*'||
aux[c+1]='\0'; opcion=='/'||opcion=='='||opcion=='\r')
fondo(); {
outtextxy(250-(c*20),45,aux); c=8;
c++; op=opcion;
break; }
case'4': else{
aux[c]=opcion; fondo();
aux[c+1]='\0'; outtextxy(250-(c*20),45,aux);}
fondo(); break;
outtextxy(250-(c*20),45,aux); case'\b':
c++; aux[c-1]='\0';
break; fondo();
case'5': outtextxy(250-(c*20),45,aux);
aux[c]=opcion; c--;
aux[c+1]='\0'; break;
fondo(); case 27:
outtextxy(250-(c*20),45,aux); c=8;
c++; op=27;
break; break; } } }while (c<8);
case'6': return atof(aux);
aux[c]=opcion; }
aux[c+1]='\0';
fondo();
outtextxy(250-(c*20),45,aux);
c++;
break;
case'7':
aux[c]=opcion;
aux[c+1]='\0';
fondo();
outtextxy(250-(c*20),45,aux);
Programa del juego Mario Bros el cual permite moverse de izquierda a derecha, as como saltar y agacharse hacia
ambos lados por medio de memoria dinmica
#include <graphics.h> bar(w+77*w2,w1-48*w2,w+78*w2,w1- bar(w+106*w2,w1-50*w2,w+112*w2,w1-
#define t 6 47*w2);//punto2 48*w2);
#define b 6 bar(w+77*w2,w1-40*w2,w+78*w2,w1- bar(w+113*w2,w1-50*w2,w+119*w2,w1-
using namespace std; 41*w2);//punto3 48*w2);
class juegos bar(w+69*w2,w1-40*w2,w+70*w2,w1- bar(w+106*w2,w1-47*w2,w+109*w2,w1-
{ 41*w2);//punto4 45*w2);
public: outtextxy(w+72*w2,w1-46*w2,"?"); bar(w+110*w2,w1-47*w2,w+115*w2,w1-
void hongo2(int x, int y,int c,int sf); //Cuadro2 45*w2);
void sMarioParadoDer(int x, int y,int c); setfillstyle(1,BLACK); bar(w+116*w2,w1-47*w2,w+119*w2,w1-
void sMarioParadoDer1(int x, int y,int c); bar(w+86*w2,w1-50*w2,w+87*w2,w1-48*w2); 45*w2);
void sMarioParadoDerA(int x, int y,int c); bar(w+80*w2,w1-48*w2,w+93*w2,w1-47*w2); bar(w+106*w2,w1-44*w2,w+112*w2,w1-
void sMarioParadoDerA1(int x, int y,int c); bar(w+83*w2,w1-47*w2,w+84*w2,w1-45*w2); 42*w2);
void sMarioParadoArr(int x, int y,int c); bar(w+89*w2,w1-47*w2,w+90*w2,w1-45*w2); bar(w+113*w2,w1-44*w2,w+119*w2,w1-
void sMarioParadoArrA(int x, int y,int c); bar(w+80*w2,w1-45*w2,w+93*w2,w1-44*w2); 42*w2);
void sMarioParadoCam(int x, int y,int c); bar(w+86*w2,w1-44*w2,w+87*w2,w1-42*w2); bar(w+106*w2,w1-41*w2,w+109*w2,w1-
void sMarioParadoCamA(int x, int y,int c); bar(w+80*w2,w1-42*w2,w+93*w2,w1-41*w2); 39*w2);
void sMario1(int x, int y,int c); bar(w+83*w2,w1-41*w2,w+84*w2,w1-39*w2); bar(w+110*w2,w1-41*w2,w+115*w2,w1-
void sMario1Ab(int x, int y,int c); bar(w+89*w2,w1-41*w2,w+90*w2,w1-39*w2); 39*w2);
void sMario2(int x, int y,int c); bar(w+80*w2,w1-39*w2,w+93*w2,w1-38*w2); bar(w+116*w2,w1-41*w2,w+119*w2,w1-
void sMario2Ab(int x, int y,int c); setfillstyle(1,RED); 39*w2);
void sMarioParadoArr1(int x, int y,int c); bar(w+80*w2,w1-50*w2,w+86*w2,w1-48*w2); }
void sMarioParadoArrA1(int x, int y,int c); bar(w+87*w2,w1-50*w2,w+93*w2,w1-48*w2);
void sMarioParadoCam1(int x, int y,int c); bar(w+80*w2,w1-47*w2,w+83*w2,w1-45*w2);
void sMarioParadoCamA1(int x, int y,int c); bar(w+84*w2,w1-47*w2,w+89*w2,w1-45*w2); void juegos::sNube(int h, int e, int g)
void sMario11(int x, int y,int c); bar(w+90*w2,w1-47*w2,w+93*w2,w1-45*w2); { setcolor(BLACK);
void sMario1Ab1(int x, int y,int c); bar(w+80*w2,w1-44*w2,w+86*w2,w1-42*w2); setfillstyle(1,BLACK);
void sMario21(int x, int y,int c); bar(w+87*w2,w1-44*w2,w+93*w2,w1-42*w2); bar(h,e+13*g,h+1*g,e+15*g);
void sMario2Ab1(int x, int y,int c); bar(w+80*w2,w1-41*w2,w+83*w2,w1-39*w2); bar(h+1*g,e+12*g,h+3*g,e+13*g);
void sNube(int h,int e,int g); bar(w+84*w2,w1-41*w2,w+89*w2,w1-39*w2); bar(h+3*g,e+11*g,h+4*g,e+12*g);
void sPoste(int h1, int e1, int g1); bar(w+90*w2,w1-41*w2,w+93*w2,w1-39*w2); bar(h+4*g,e+10*g,h+5*g,e+11*g);
void sSuelo(int h2, int e2, int g2); bar(h+5*g,e+9*g,h+8*g,e+10*g);
void sNube2(int h3,int e3,int g3); bar(h+8*g,e+8*g,h+9*g,e+9*g);
//Cuadro2_1
void sPasto1(int h4,int e4,int g4); bar(h+9*g,e+7*g,h+10*g,e+8*g);
setfillstyle(1,BROWN);
void sPasto2(int h5,int e5,int g5); bar(h+10*g,e+4*g,h+11*g,e+7*g);
bar(w+94*w2,w1-50*w2,w+105*w2,w1-
void sCuadros(int w, int w1, int w2); bar(h+11*g,e+3*g,h+13*g,e+4*g);
49*w2);
}; bar(h+13*g,e+2*g,h+14*g,e+3*g);
bar(w+93*w2,w1-39*w2,w+94*w2,w1-49*w2); bar(h+14*g,e+1*g,h+18*g,e+2*g);
setfillstyle(1,YELLOW);
void juegos::sCuadros(int w, int w1, int w2) bar(h+18*g,e+2*g,h+19*g,e+3*g);
bar(w+94*w2,w1-49*w2,w+106*w2,w1-
{ bar(h+19*g,e+3*g,h+20*g,e+5*g);
39*w2);
//CUADROS bar(h+20*g,e+5*g,h+21*g,e+6*g);
setfillstyle(1,BLACK); bar(h+21*g,e+4*g,h+22*g,e+5*g);
bar(w+105*w2,w1-49*w2,w+106*w2,w1- bar(h+22*g,e+5*g,h+23*g,e+6*g);
//Cuadro1 38*w2); bar(h+23*g,e+6*g,h+24*g,e+8*g);
setfillstyle(1,BLACK); bar(w+105*w2,w1-38*w2,w+92*w2,w1- bar(h+23*g,e+8*g,h+25*g,e+9*g);
bar(w+60*w2,w1-50*w2,w+61*w2,w1-48*w2); 39*w2); bar(h+25*g,e+7*g,h+26*g,e+8*g);
bar(w+54*w2,w1-48*w2,w+67*w2,w1-47*w2); bar(w+95*w2,w1-48*w2,w+96*w2,w1- bar(h+26*g,e+5*g,h+27*g,e+7*g);
bar(w+57*w2,w1-47*w2,w+58*w2,w1-45*w2); 47*w2);//punto1 bar(h+27*g,e+4*g,h+29*g,e+5*g);
bar(w+63*w2,w1-47*w2,w+64*w2,w1-45*w2); bar(w+103*w2,w1-48*w2,w+104*w2,w1- bar(h+29*g,e+3*g,h+30*g,e+4*g);
bar(w+54*w2,w1-45*w2,w+67*w2,w1-44*w2); 47*w2);//punto2 bar(h+30*g,e+2*g,h+33*g,e+3*g);
bar(w+60*w2,w1-44*w2,w+61*w2,w1-42*w2); bar(w+103*w2,w1-40*w2,w+104*w2,w1- bar(h+33*g,e+3*g,h+34*g,e+4*g);
bar(w+54*w2,w1-42*w2,w+67*w2,w1-41*w2); 41*w2);//punto3 bar(h+34*g,e+4*g,h+35*g,e+6*g);
bar(w+57*w2,w1-41*w2,w+58*w2,w1-39*w2); bar(w+95*w2,w1-40*w2,w+96*w2,w1-
bar(h+35*g,e+6*g,h+36*g,e+7*g);
bar(w+63*w2,w1-41*w2,w+64*w2,w1-39*w2); 41*w2);//punto4 bar(h+36*g,e+5*g,h+37*g,e+6*g);
bar(w+54*w2,w1-39*w2,w+67*w2,w1-38*w2); outtextxy(w+98*w2,w1-46*w2,"?"); bar(h+37*g,e+6*g,h+38*g,e+7*g);
setfillstyle(1,RED); bar(h+38*g,e+7*g,h+39*g,e+10*g);
bar(w+54*w2,w1-50*w2,w+60*w2,w1-48*w2);
//Cuadro3 bar(h+39*g,e+10*g,h+40*g,e+12*g);
bar(w+61*w2,w1-50*w2,w+67*w2,w1-48*w2);
setfillstyle(1,BLACK); bar(h+40*g,e+12*g,h+41*g,e+13*g);
bar(w+54*w2,w1-47*w2,w+57*w2,w1-45*w2);
bar(w+112*w2,w1-50*w2,w+113*w2,w1- bar(h+41*g,e+11*g,h+42*g,e+12*g);
bar(w+58*w2,w1-47*w2,w+63*w2,w1-45*w2);
48*w2); bar(h+42*g,e+10*g,h+43*g,e+11*g);
bar(w+64*w2,w1-47*w2,w+67*w2,w1-45*w2);
bar(w+106*w2,w1-48*w2,w+119*w2,w1- bar(h+43*g,e+11*g,h+44*g,e+14*g);
bar(w+54*w2,w1-44*w2,w+60*w2,w1-42*w2);
47*w2); bar(h+44*g,e+14*g,h+45*g,e+15*g);
bar(w+61*w2,w1-44*w2,w+67*w2,w1-42*w2);
bar(w+109*w2,w1-47*w2,w+110*w2,w1- bar(h+45*g,e+13*g,h+46*g,e+14*g);
bar(w+54*w2,w1-41*w2,w+57*w2,w1-39*w2);
45*w2); bar(h+46*g,e+14*g,h+47*g,e+16*g);
bar(w+58*w2,w1-41*w2,w+63*w2,w1-39*w2);
bar(w+115*w2,w1-47*w2,w+116*w2,w1- bar(h+45*g,e+16*g,h+46*g,e+17*g);
bar(w+64*w2,w1-41*w2,w+67*w2,w1-39*w2);
45*w2); bar(h+44*g,e+17*g,h+45*g,e+18*g);
bar(w+106*w2,w1-45*w2,w+119*w2,w1- bar(h+45*g,e+18*g,h+46*g,e+19*g);
//Cuadro1_1 44*w2); bar(h+46*g,e+19*g,h+47*g,e+20*g);
setfillstyle(1,BROWN); bar(w+112*w2,w1-44*w2,w+113*w2,w1- bar(h+44*g,e+20*g,h+46*g,e+21*g);
bar(w+68*w2,w1-50*w2,w+79*w2,w1-49*w2); 42*w2); bar(h+42*g,e+21*g,h+44*g,e+22*g);
bar(w+67*w2,w1-39*w2,w+68*w2,w1-49*w2); bar(w+106*w2,w1-42*w2,w+119*w2,w1- bar(h+40*g,e+22*g,h+42*g,e+23*g);
setfillstyle(1,YELLOW); 41*w2); bar(h+39*g,e+21*g,h+40*g,e+22*g);
bar(w+68*w2,w1-49*w2,w+79*w2,w1-39*w2); bar(w+109*w2,w1-41*w2,w+110*w2,w1- bar(h+37*g,e+22*g,h+39*g,e+23*g);
setfillstyle(1,BLACK); 39*w2); bar(h+33*g,e+23*g,h+37*g,e+24*g);
bar(w+79*w2,w1-49*w2,w+80*w2,w1-38*w2); bar(w+115*w2,w1-41*w2,w+116*w2,w1- bar(h+31*g,e+22*g,h+33*g,e+23*g);
bar(w+79*w2,w1-38*w2,w+66*w2,w1-39*w2); 39*w2); bar(h+30*g,e+21*g,h+31*g,e+22*g);
bar(w+69*w2,w1-48*w2,w+70*w2,w1- bar(w+106*w2,w1-39*w2,w+119*w2,w1- bar(h+29*g,e+22*g,h+30*g,e+23*g);
47*w2);//punto1 38*w2); bar(h+26*g,e+23*g,h+29*g,e+24*g);
setfillstyle(1,RED); bar(h+24*g,e+22*g,h+26*g,e+23*g);
bar(h+23*g,e+21*g,h+24*g,e+22*g);
bar(h+21*g,e+22*g,h+23*g,e+23*g);
bar(h+17*g,e+23*g,h+21*g,e+24*g);
bar(h3+5*g3,e3+9*g3,h3+8*g3,e3+10*g3); bar(h3+45*g3,e3+16*g3,h3+46*g3,e3+17*g3);
bar(h+15*g,e+22*g,h+17*g,e+23*g);
bar(h+14*g,e+21*g,h+15*g,e+22*g);
bar(h+13*g,e+22*g,h+14*g,e+23*g); bar(h3+8*g3,e3+8*g3,h3+9*g3,e3+9*g3); bar(h3+44*g3,e3+17*g3,h3+45*g3,e3+18*g3);
bar(h+10*g,e+23*g,h+13*g,e+24*g);
bar(h+8*g,e+22*g,h+10*g,e+23*g);
bar(h+7*g,e+21*g,h+8*g,e+22*g); bar(h3+9*g3,e3+7*g3,h3+10*g3,e3+8*g3); bar(h3+45*g3,e3+18*g3,h3+46*g3,e3+19*g3);
bar(h+4*g,e+20*g,h+7*g,e+21*g);
bar(h+3*g,e+18*g,h+4*g,e+20*g); bar(h3+10*g3,e3+4*g3,h3+11*g3,e3+7*g3); bar(h3+46*g3,e3+19*g3,h3+47*g3,e3+20*g3);
bar(h+2*g,e+17*g,h+3*g,e+18*g);
bar(h+1*g,e+15*g,h+2*g,e+17*g);
bar(h+0*g,e+13*g,h+1*g,e+15*g); bar(h3+11*g3,e3+3*g3,h3+13*g3,e3+4*g3); bar(h3+44*g3,e3+20*g3,h3+46*g3,e3+21*g3);
setcolor(WHITE); bar(h3+13*g3,e3+2*g3,h3+14*g3,e3+3*g3);
setfillstyle(1,WHITE); bar(h3+42*g3,e3+21*g3,h3+44*g3,e3+22*g3);
bar(h+1*g,e+13*g,h+3*g,e+15*g); bar(h3+14*g3,e3+1*g3,h3+18*g3,e3+2*g3);
bar(h+2*g,e+15*g,h+3*g,e+17*g);
bar(h+3*g,e+12*g,h+4*g,e+18*g); bar(h3+40*g3,e3+22*g3,h3+42*g3,e3+23*g3);
bar(h+4*g,e+11*g,h+5*g,e+12*g); bar(h3+18*g3,e3+2*g3,h3+19*g3,e3+3*g3);
bar(h+4*g,e+12*g,h+7*g,e+20*g);
bar(h3+39*g3,e3+21*g3,h3+40*g3,e3+22*g3);
bar(h+5*g,e+10*g,h+8*g,e+12*g);
bar(h3+19*g3,e3+3*g3,h3+20*g3,e3+5*g3);
bar(h+8*g,e+9*g,h+9*g,e+12*g);
bar(h+7*g,e+12*g,h+9*g,e+21*g); bar(h3+37*g3,e3+22*g3,h3+39*g3,e3+23*g3);
bar(h+9*g,e+8*g,h+10*g,e+21*g); bar(h3+20*g3,e3+5*g3,h3+21*g3,e3+6*g3);
bar(h+8*g,e+21*g,h+10*g,e+22*g);
bar(h+11*g,e+4*g,h+13*g,e+7*g); bar(h3+33*g3,e3+23*g3,h3+37*g3,e3+24*g3);
bar(h+10*g,e+7*g,h+12*g,e+9*g); bar(h3+21*g3,e3+4*g3,h3+22*g3,e3+5*g3);
bar(h+10*g,e+9*g,h+13*g,e+23*g); bar(h3+31*g3,e3+22*g3,h3+33*g3,e3+23*g3);
bar(h+13*g,e+3*g,h+15*g,e+7*g); bar(h3+22*g3,e3+5*g3,h3+23*g3,e3+6*g3);
bar(h+13*g,e+8*g,h+15*g,e+21*g);
bar(h+13*g,e+21*g,h+14*g,e+22*g); bar(h3+30*g3,e3+21*g3,h3+31*g3,e3+22*g3);
bar(h+14*g,e+2*g,h+18*g,e+3*g); bar(h3+23*g3,e3+6*g3,h3+24*g3,e3+8*g3);
bar(h+15*g,e+3*g,h+17*g,e+22*g); bar(h3+29*g3,e3+22*g3,h3+30*g3,e3+23*g3);
bar(h+17*g,e+3*g,h+19*g,e+6*g); bar(h3+23*g3,e3+8*g3,h3+25*g3,e3+9*g3);
bar(h+18*g,e+6*g,h+19*g,e+7*g);
bar(h+19*g,e+5*g,h+20*g,e+6*g); bar(h3+26*g3,e3+23*g3,h3+29*g3,e3+24*g3);
bar(h+19*g,e+6*g,h+21*g,e+8*g); bar(h3+25*g3,e3+7*g3,h3+26*g3,e3+8*g3);
bar(h+17*g,e+7*g,h+18*g,e+8*g);
bar(h3+24*g3,e3+22*g3,h3+26*g3,e3+23*g3);
bar(h+17*g,e+8*g,h+21*g,e+23*g);
bar(h3+26*g3,e3+5*g3,h3+27*g3,e3+7*g3);
bar(h+21*g,e+5*g,h+22*g,e+6*g);
bar(h+21*g,e+6*g,h+24*g,e+22*g); bar(h3+23*g3,e3+21*g3,h3+24*g3,e3+22*g3);
bar(h+23*g,e+9*g,h+25*g,e+21*g); bar(h3+27*g3,e3+4*g3,h3+29*g3,e3+5*g3);
bar(h+24*g,e+21*g,h+25*g,e+22*g);
bar(h+26*g,e+7*g,h+27*g,e+8*g); bar(h3+21*g3,e3+22*g3,h3+23*g3,e3+23*g3);
bar(h+25*g,e+8*g,h+28*g,e+22*g); bar(h3+29*g3,e3+3*g3,h3+30*g3,e3+4*g3);
bar(h+27*g,e+5*g,h+29*g,e+8*g); bar(h3+17*g3,e3+23*g3,h3+21*g3,e3+24*g3);
bar(h+26*g,e+22*g,h+29*g,e+23*g); bar(h3+30*g3,e3+2*g3,h3+33*g3,e3+3*g3);
bar(h+30*g,e+3*g,h+33*g,e+4*g);
bar(h+29*g,e+4*g,h+31*g,e+7*g); bar(h3+15*g3,e3+22*g3,h3+17*g3,e3+23*g3);
bar(h+29*g,e+8*g,h+30*g,e+9*g); bar(h3+33*g3,e3+3*g3,h3+34*g3,e3+4*g3);
bar(h+28*g,e+9*g,h+30*g,e+22*g); bar(h3+14*g3,e3+21*g3,h3+15*g3,e3+22*g3);
bar(h+31*g,e+4*g,h+34*g,e+6*g); bar(h3+34*g3,e3+4*g3,h3+35*g3,e3+6*g3);
bar(h+31*g,e+6*g,h+32*g,e+7*g);
bar(h+30*g,e+8*g,h+31*g,e+21*g); bar(h3+13*g3,e3+22*g3,h3+14*g3,e3+23*g3);
bar(h+31*g,e+7*g,h+33*g,e+22*g); bar(h3+35*g3,e3+6*g3,h3+36*g3,e3+7*g3);
bar(h+33*g,e+6*g,h+35*g,e+7*g);
bar(h3+10*g3,e3+23*g3,h3+13*g3,e3+24*g3);
bar(h+33*g,e+7*g,h+37*g,e+23*g);
bar(h3+36*g3,e3+5*g3,h3+37*g3,e3+6*g3);
bar(h+36*g,e+6*g,h+37*g,e+7*g);
bar(h+37*g,e+7*g,h+38*g,e+22*g); bar(h3+8*g3,e3+22*g3,h3+10*g3,e3+23*g3);
bar(h+38*g,e+10*g,h+39*g,e+22*g); bar(h3+37*g3,e3+6*g3,h3+38*g3,e3+7*g3);
bar(h+39*g,e+12*g,h+40*g,e+21*g);
bar(h+40*g,e+13*g,h+42*g,e+22*g); bar(h3+7*g3,e3+21*g3,h3+8*g3,e3+22*g3);
bar(h+41*g,e+12*g,h+42*g,e+13*g); bar(h3+38*g3,e3+7*g3,h3+39*g3,e3+10*g3);
bar(h+42*g,e+11*g,h+43*g,e+14*g); bar(h3+4*g3,e3+20*g3,h3+7*g3,e3+21*g3);
bar(h+42*g,e+14*g,h+44*g,e+21*g); bar(h3+39*g3,e3+10*g3,h3+40*g3,e3+12*g3);
bar(h+44*g,e+15*g,h+45*g,e+17*g);
bar(h+45*g,e+14*g,h+46*g,e+16*g); bar(h3+3*g3,e3+18*g3,h3+4*g3,e3+20*g3);
bar(h+44*g,e+18*g,h+45*g,e+20*g); bar(h3+40*g3,e3+12*g3,h3+41*g3,e3+13*g3);
bar(h+45*g,e+19*g,h+46*g,e+20*g); bar(h3+2*g3,e3+17*g3,h3+3*g3,e3+18*g3);
} bar(h3+41*g3,e3+11*g3,h3+42*g3,e3+12*g3);
void juegos::sNube2(int h3, int e3, int g3) bar(h3+1*g3,e3+15*g3,h3+2*g3,e3+17*g3);
{ setcolor(BLACK); bar(h3+42*g3,e3+10*g3,h3+43*g3,e3+11*g3);
setfillstyle(1,BLACK);
bar(h3+0*g3,e3+13*g3,h3+1*g3,e3+15*g3);
bar(h3,e3+13*g3,h3+1*g3,e3+15*g3);
bar(h3+43*g3,e3+11*g3,h3+44*g3,e3+14*g3); setcolor(WHITE);
setfillstyle(1,WHITE);
bar(h3+1*g3,e3+12*g3,h3+3*g3,e3+13*g3);
bar(h3+44*g3,e3+14*g3,h3+45*g3,e3+15*g3);
bar(h3+1*g3,e3+13*g3,h3+3*g3,e3+15*g3);
bar(h3+3*g3,e3+11*g3,h3+4*g3,e3+12*g3);
bar(h3+45*g3,e3+13*g3,h3+46*g3,e3+14*g3);
bar(h3+2*g3,e3+15*g3,h3+3*g3,e3+17*g3);
bar(h3+4*g3,e3+10*g3,h3+5*g3,e3+11*g3);
bar(h3+46*g3,e3+14*g3,h3+47*g3,e3+16*g3);
bar(h3+3*g3,e3+12*g3,h3+4*g3,e3+18*g3); bar(h3+29*g3,e3+8*g3,h3+30*g3,e3+9*g3); bar(h1+12*g1,e1+3*g1,h1+13*g1,e1+13*g1);

bar(h3+4*g3,e3+11*g3,h3+5*g3,e3+12*g3); bar(h3+28*g3,e3+9*g3,h3+30*g3,e3+22*g3); bar(h1+15*g1,e1+3*g1,h1+25*g1,e1+13*g1);

bar(h3+4*g3,e3+12*g3,h3+7*g3,e3+20*g3); bar(h3+31*g3,e3+4*g3,h3+34*g3,e3+6*g3); bar(h1+6*g1,e1+15*g1,h1+8*g1,e1+32*g1);

bar(h3+5*g3,e3+10*g3,h3+8*g3,e3+12*g3); bar(h3+31*g3,e3+6*g3,h3+32*g3,e3+7*g3); bar(h1+13*g1,e1+15*g1,h1+14*g1,e1+32*g1);

bar(h3+8*g3,e3+9*g3,h3+9*g3,e3+12*g3); bar(h3+30*g3,e3+8*g3,h3+31*g3,e3+21*g3); bar(h1+16*g1,e1+15*g1,h1+24*g1,e1+32*g1);


setcolor(LIGHTGREEN);
setfillstyle(1,LIGHTGREEN);
bar(h3+7*g3,e3+12*g3,h3+9*g3,e3+21*g3); bar(h3+31*g3,e3+7*g3,h3+33*g3,e3+22*g3);

bar(h1+1*g1,e1+1*g1,h1+31*g1,e1+2*g1);
bar(h3+9*g3,e3+8*g3,h3+10*g3,e3+21*g3); bar(h3+33*g3,e3+6*g3,h3+35*g3,e3+7*g3);

bar(h1+1*g1,e1+3*g1,h1+4*g1,e1+13*g1);
bar(h3+8*g3,e3+21*g3,h3+10*g3,e3+22*g3); bar(h3+33*g3,e3+7*g3,h3+37*g3,e3+23*g3);

bar(h1+6*g1,e1+2*g1,h1+12*g1,e1+13*g1);
bar(h3+11*g3,e3+4*g3,h3+13*g3,e3+7*g3); bar(h3+36*g3,e3+6*g3,h3+37*g3,e3+7*g3);

bar(h1+13*g1,e1+3*g1,h1+15*g1,e1+13*g1);
bar(h3+10*g3,e3+7*g3,h3+12*g3,e3+9*g3); bar(h3+37*g3,e3+7*g3,h3+38*g3,e3+22*g3);

bar(h1+25*g1,e1+3*g1,h1+31*g1,e1+13*g1);
bar(h3+10*g3,e3+9*g3,h3+13*g3,e3+23*g3); bar(h3+38*g3,e3+10*g3,h3+39*g3,e3+22*g3);

bar(h1+3*g1,e1+15*g1,h1+6*g1,e1+32*g1);
bar(h3+13*g3,e3+3*g3,h3+15*g3,e3+7*g3); bar(h3+39*g3,e3+12*g3,h3+40*g3,e3+21*g3);

bar(h1+8*g1,e1+15*g1,h1+13*g1,e1+32*g1);
bar(h3+13*g3,e3+8*g3,h3+15*g3,e3+21*g3); bar(h3+40*g3,e3+13*g3,h3+42*g3,e3+22*g3);

bar(h1+14*g1,e1+15*g1,h1+16*g1,e1+32*g1);
bar(h3+13*g3,e3+21*g3,h3+14*g3,e3+22*g3); bar(h3+41*g3,e3+12*g3,h3+42*g3,e3+13*g3);

bar(h1+24*g1,e1+15*g1,h1+29*g1,e1+32*g1);
bar(h3+14*g3,e3+2*g3,h3+18*g3,e3+3*g3); bar(h3+42*g3,e3+11*g3,h3+43*g3,e3+14*g3); }

bar(h3+15*g3,e3+3*g3,h3+17*g3,e3+22*g3); bar(h3+42*g3,e3+14*g3,h3+44*g3,e3+21*g3); void juegos::sSuelo(int h2, int e2, int g2)


{ setcolor(BROWN);
setfillstyle(1,BROWN);
bar(h3+17*g3,e3+3*g3,h3+19*g3,e3+6*g3); bar(h3+44*g3,e3+15*g3,h3+45*g3,e3+17*g3);

bar(h2+1*g2,e2+1*g2,h2+7*g2,e2+4*g2);
bar(h3+18*g3,e3+6*g3,h3+19*g3,e3+7*g3); bar(h3+45*g3,e3+14*g3,h3+46*g3,e3+16*g3);

bar(h2+8*g2,e2+1*g2,h2+16*g2,e2+9*g2);
bar(h3+19*g3,e3+5*g3,h3+20*g3,e3+6*g3); bar(h3+44*g3,e3+18*g3,h3+45*g3,e3+20*g3);

bar(h2+1*g2,e2+5*g2,h2+7*g2,e2+9*g2);
bar(h3+19*g3,e3+6*g3,h3+21*g3,e3+8*g3); bar(h3+45*g3,e3+19*g3,h3+46*g3,e3+20*g3); setcolor(BLACK);
} setfillstyle(1,BLACK);
bar(h3+17*g3,e3+7*g3,h3+18*g3,e3+8*g3); bar(h2,e2,h2+1*g2,e2+9*g2);
void juegos::sPoste(int h1, int e1, int g1) bar(h2+1*g2,e2,h2+17*g2,e2+1*g2);
{ setcolor(BLACK);
bar(h3+17*g3,e3+8*g3,h3+21*g3,e3+23*g3); setfillstyle(1,BLACK);
bar(h1,e1,h1+32*g1,e1+1*g1); bar(h2+1*g2,e2+4*g2,h2+7*g2,e2+5*g2);
bar(h1,e1+1*g1,h1+1*g1,e1+14*g1);
bar(h3+21*g3,e3+5*g3,h3+22*g3,e3+6*g3);
bar(h2+7*g2,e2+1*g2,h2+8*g2,e2+9*g2);
bar(h1+1*g1,e1+13*g1,h1+31*g1,e1+14*g1); bar(h2+16*g2,e2,h2+17*g2,e2+9*g2);
bar(h3+21*g3,e3+6*g3,h3+24*g3,e3+22*g3); setcolor(BROWN);
setfillstyle(1,BROWN);
bar(h1+31*g1,e1+1*g1,h1+32*g1,e1+14*g1);
bar(h3+23*g3,e3+9*g3,h3+25*g3,e3+21*g3);
bar(h2+18*g2,e2+1*g2,h2+25*g2,e2+4*g2);
bar(h1+2*g1,e1+14*g1,h1+3*g1,e1+32*g1);
bar(h3+24*g3,e3+21*g3,h3+25*g3,e3+22*g3);
bar(h2+25*g2,e2+1*g2,h2+33*g2,e2+9*g2);
bar(h1+3*g1,e1+14*g1,h1+30*g1,e1+15*g1);
bar(h3+26*g3,e3+7*g3,h3+27*g3,e3+8*g3);
bar(h2+18*g2,e2+5*g2,h2+24*g2,e2+9*g2);
bar(h1+29*g1,e1+14*g1,h1+30*g1,e1+32*g1); setcolor(BLACK);
bar(h3+25*g3,e3+8*g3,h3+28*g3,e3+22*g3); setcolor(GREEN); setfillstyle(1,BLACK);
setfillstyle(1,GREEN); bar(h2+17*g2,e2,h2+18*g2,e2+9*g2);
bar(h3+27*g3,e3+5*g3,h3+29*g3,e3+8*g3); bar(h2+18*g2,e2,h2+34*g2,e2+1*g2);
bar(h1+1*g1,e1+2*g1,h1+6*g1,e1+3*g1);
bar(h3+26*g3,e3+22*g3,h3+29*g3,e3+23*g3); bar(h2+18*g2,e2+4*g2,h2+24*g2,e2+5*g2);
bar(h1+4*g1,e1+3*g1,h1+6*g1,e1+13*g1);
bar(h3+30*g3,e3+3*g3,h3+33*g3,e3+4*g3); bar(h2+24*g2,e2+1*g2,h2+25*g2,e2+9*g2);
bar(h1+12*g1,e1+2*g1,h1+31*g1,e1+3*g1); bar(h2+33*g2,e2,h2+34*g2,e2+9*g2);
setcolor(BROWN);
bar(h3+29*g3,e3+4*g3,h3+31*g3,e3+7*g3); setfillstyle(1,BROWN);
bar(h2+35*g2,e2+1*g2,h2+42*g2,e2+4*g2); bar(h2+103*g2,e2+1*g2,h2+110*g2,e2+4*g2); bar(h2+153*g2,e2,h2+154*g2,e2+9*g2);

bar(h2+42*g2,e2+1*g2,h2+50*g2,e2+9*g2); bar(h2+110*g2,e2+1*g2,h2+118*g2,e2+9*g2); bar(h2+154*g2,e2,h2+170*g2,e2+1*g2);

bar(h2+35*g2,e2+5*g2,h2+41*g2,e2+9*g2); bar(h2+103*g2,e2+5*g2,h2+109*g2,e2+9*g2); bar(h2+154*g2,e2+4*g2,h2+160*g2,e2+5*g2);


setcolor(BLACK); setcolor(BLACK);
setfillstyle(1,BLACK); setfillstyle(1,BLACK);
bar(h2+160*g2,e2+1*g2,h2+161*g2,e2+9*g2);
bar(h2+34*g2,e2,h2+35*g2,e2+9*g2);
bar(h2+35*g2,e2,h2+51*g2,e2+1*g2);
bar(h2+102*g2,e2,h2+103*g2,e2+9*g2);
bar(h2+169*g2,e2,h2+170*g2,e2+9*g2);
setfillstyle(1,BROWN);
bar(h2+35*g2,e2+4*g2,h2+41*g2,e2+5*g2);
bar(h2+103*g2,e2,h2+119*g2,e2+1*g2);
bar(h2+171*g2,e2+1*g2,h2+178*g2,e2+4*g2);
bar(h2+41*g2,e2+1*g2,h2+42*g2,e2+9*g2);
bar(h2+103*g2,e2+4*g2,h2+109*g2,e2+5*g2);
bar(h2+50*g2,e2,h2+51*g2,e2+9*g2);
setcolor(BROWN); bar(h2+178*g2,e2+1*g2,h2+186*g2,e2+9*g2);
setfillstyle(1,BROWN); bar(h2+109*g2,e2+1*g2,h2+110*g2,e2+9*g2);
bar(h2+171*g2,e2+5*g2,h2+177*g2,e2+9*g2);
bar(h2+52*g2,e2+1*g2,h2+59*g2,e2+4*g2); bar(h2+118*g2,e2,h2+119*g2,e2+9*g2); setcolor(BLACK);
setcolor(BROWN); setfillstyle(1,BLACK);
setfillstyle(1,BROWN);
bar(h2+59*g2,e2+1*g2,h2+67*g2,e2+9*g2);
bar(h2+170*g2,e2,h2+171*g2,e2+9*g2);
bar(h2+120*g2,e2+1*g2,h2+127*g2,e2+4*g2);
bar(h2+52*g2,e2+5*g2,h2+58*g2,e2+9*g2);
setcolor(BLACK); bar(h2+171*g2,e2,h2+187*g2,e2+1*g2);
setfillstyle(1,BLACK); bar(h2+127*g2,e2+1*g2,h2+135*g2,e2+9*g2);
bar(h2+51*g2,e2,h2+52*g2,e2+9*g2);
bar(h2+52*g2,e2,h2+68*g2,e2+1*g2); bar(h2+171*g2,e2+4*g2,h2+178*g2,e2+5*g2);
bar(h2+120*g2,e2+5*g2,h2+126*g2,e2+9*g2);
setcolor(BLACK);
bar(h2+52*g2,e2+4*g2,h2+58*g2,e2+5*g2); bar(h2+177*g2,e2+1*g2,h2+178*g2,e2+9*g2);
setfillstyle(1,BLACK);

bar(h2+58*g2,e2+1*g2,h2+59*g2,e2+9*g2); bar(h2+186*g2,e2,h2+187*g2,e2+9*g2);
bar(h2+119*g2,e2,h2+120*g2,e2+9*g2);
bar(h2+67*g2,e2,h2+68*g2,e2+9*g2); setfillstyle(1,BROWN);
setcolor(BROWN);
setfillstyle(1,BROWN); bar(h2+120*g2,e2,h2+136*g2,e2+1*g2);
bar(h2+188*g2,e2+1*g2,h2+195*g2,e2+4*g2);

bar(h2+69*g2,e2+1*g2,h2+76*g2,e2+4*g2); bar(h2+120*g2,e2+4*g2,h2+126*g2,e2+5*g2);
bar(h2+195*g2,e2+1*g2,h2+203*g2,e2+9*g2);

bar(h2+76*g2,e2+1*g2,h2+84*g2,e2+9*g2); bar(h2+126*g2,e2+1*g2,h2+127*g2,e2+9*g2);
bar(h2+188*g2,e2+5*g2,h2+194*g2,e2+9*g2);
setcolor(BLACK);
bar(h2+69*g2,e2+5*g2,h2+75*g2,e2+9*g2); bar(h2+135*g2,e2,h2+136*g2,e2+9*g2); setfillstyle(1,BLACK);
setcolor(BLACK); setfillstyle(1,BROWN);
setfillstyle(1,BLACK); bar(h2+187*g2,e2,h2+188*g2,e2+9*g2);
bar(h2+68*g2,e2,h2+69*g2,e2+9*g2); bar(h2+137*g2,e2+1*g2,h2+144*g2,e2+4*g2);
bar(h2+69*g2,e2,h2+85*g2,e2+1*g2);
bar(h2+188*g2,e2,h2+204*g2,e2+1*g2);
bar(h2+144*g2,e2+1*g2,h2+152*g2,e2+9*g2);
bar(h2+69*g2,e2+4*g2,h2+75*g2,e2+5*g2);
bar(h2+188*g2,e2+4*g2,h2+195*g2,e2+5*g2);
bar(h2+137*g2,e2+5*g2,h2+143*g2,e2+9*g2);
bar(h2+75*g2,e2+1*g2,h2+76*g2,e2+9*g2); setcolor(BLACK);
bar(h2+84*g2,e2,h2+85*g2,e2+9*g2); bar(h2+194*g2,e2+1*g2,h2+195*g2,e2+9*g2);
setfillstyle(1,BLACK);
setcolor(BROWN);
setfillstyle(1,BROWN); bar(h2+203*g2,e2,h2+204*g2,e2+9*g2);
bar(h2+136*g2,e2,h2+137*g2,e2+9*g2);
setfillstyle(1,BROWN);
bar(h2+86*g2,e2+1*g2,h2+93*g2,e2+4*g2);
bar(h2+137*g2,e2,h2+153*g2,e2+1*g2);
bar(h2+205*g2,e2+1*g2,h2+212*g2,e2+4*g2);
bar(h2+93*g2,e2+1*g2,h2+101*g2,e2+9*g2);
bar(h2+137*g2,e2+4*g2,h2+143*g2,e2+5*g2);
bar(h2+212*g2,e2+1*g2,h2+220*g2,e2+9*g2);
bar(h2+86*g2,e2+5*g2,h2+92*g2,e2+9*g2);
setcolor(BLACK); bar(h2+143*g2,e2+1*g2,h2+144*g2,e2+9*g2);
bar(h2+205*g2,e2+5*g2,h2+211*g2,e2+9*g2);
setfillstyle(1,BLACK); setcolor(BLACK);
bar(h2+85*g2,e2,h2+86*g2,e2+9*g2); bar(h2+152*g2,e2,h2+153*g2,e2+9*g2); setfillstyle(1,BLACK);
setfillstyle(1,BROWN);
bar(h2+86*g2,e2,h2+102*g2,e2+1*g2); bar(h2+204*g2,e2,h2+205*g2,e2+9*g2);
bar(h2+154*g2,e2+1*g2,h2+161*g2,e2+4*g2);
bar(h2+86*g2,e2+4*g2,h2+92*g2,e2+5*g2); bar(h2+205*g2,e2,h2+221*g2,e2+1*g2);
bar(h2+161*g2,e2+1*g2,h2+169*g2,e2+9*g2);
bar(h2+92*g2,e2+1*g2,h2+93*g2,e2+9*g2); bar(h2+205*g2,e2+4*g2,h2+212*g2,e2+5*g2);
bar(h2+154*g2,e2+5*g2,h2+160*g2,e2+9*g2);
bar(h2+101*g2,e2,h2+102*g2,e2+9*g2); setcolor(BLACK);
bar(h2+211*g2,e2+1*g2,h2+212*g2,e2+9*g2);
setcolor(BROWN); setfillstyle(1,BLACK);
setfillstyle(1,BROWN);
bar(h2+220*g2,e2,h2+221*g2,e2+9*g2); bar(h4+18*g4,e4+2*g4,h4+19*g4,e4+3*g4); bar(h4+40*g4,e4+22*g4,h4+42*g4,e4+23*g4);
setfillstyle(1,BROWN);
bar(h4+19*g4,e4+3*g4,h4+20*g4,e4+5*g4); bar(h4+39*g4,e4+21*g4,h4+40*g4,e4+22*g4);
bar(h2+222*g2,e2+1*g2,h2+229*g2,e2+4*g2);
bar(h4+20*g4,e4+5*g4,h4+21*g4,e4+6*g4); bar(h4+37*g4,e4+22*g4,h4+39*g4,e4+23*g4);
bar(h2+229*g2,e2+1*g2,h2+237*g2,e2+9*g2);
bar(h4+21*g4,e4+4*g4,h4+22*g4,e4+5*g4); bar(h4+33*g4,e4+23*g4,h4+37*g4,e4+24*g4);
bar(h2+222*g2,e2+5*g2,h2+228*g2,e2+9*g2);
setcolor(BLACK);
bar(h4+22*g4,e4+5*g4,h4+23*g4,e4+6*g4); bar(h4+31*g4,e4+22*g4,h4+33*g4,e4+23*g4);
setfillstyle(1,BLACK);

bar(h4+23*g4,e4+6*g4,h4+24*g4,e4+8*g4); bar(h4+30*g4,e4+21*g4,h4+31*g4,e4+22*g4);
bar(h2+221*g2,e2,h2+222*g2,e2+9*g2);

bar(h4+23*g4,e4+8*g4,h4+25*g4,e4+9*g4); bar(h4+29*g4,e4+22*g4,h4+30*g4,e4+23*g4);
bar(h2+222*g2,e2,h2+238*g2,e2+1*g2);

bar(h4+25*g4,e4+7*g4,h4+26*g4,e4+8*g4); bar(h4+26*g4,e4+23*g4,h4+29*g4,e4+24*g4);
bar(h2+222*g2,e2+4*g2,h2+229*g2,e2+5*g2);

bar(h4+26*g4,e4+5*g4,h4+27*g4,e4+7*g4); bar(h4+24*g4,e4+22*g4,h4+26*g4,e4+23*g4);
bar(h2+228*g2,e2+1*g2,h2+229*g2,e2+9*g2);

bar(h4+27*g4,e4+4*g4,h4+29*g4,e4+5*g4); bar(h4+23*g4,e4+21*g4,h4+24*g4,e4+22*g4);
bar(h2+237*g2,e2,h2+238*g2,e2+9*g2);
setfillstyle(1,BROWN);
bar(h4+29*g4,e4+3*g4,h4+30*g4,e4+4*g4); bar(h4+21*g4,e4+22*g4,h4+23*g4,e4+23*g4);
bar(h2+239*g2,e2+1*g2,h2+246*g2,e2+4*g2);
bar(h4+30*g4,e4+2*g4,h4+33*g4,e4+3*g4); bar(h4+17*g4,e4+23*g4,h4+21*g4,e4+24*g4);
bar(h2+246*g2,e2+1*g2,h2+254*g2,e2+9*g2);
bar(h4+33*g4,e4+3*g4,h4+34*g4,e4+4*g4); bar(h4+15*g4,e4+22*g4,h4+17*g4,e4+23*g4);
bar(h2+239*g2,e2+5*g2,h2+245*g2,e2+9*g2);
setcolor(BLACK); bar(h4+34*g4,e4+4*g4,h4+35*g4,e4+6*g4); bar(h4+14*g4,e4+21*g4,h4+15*g4,e4+22*g4);
setfillstyle(1,BLACK);
bar(h4+35*g4,e4+6*g4,h4+36*g4,e4+7*g4); bar(h4+13*g4,e4+22*g4,h4+14*g4,e4+23*g4);
bar(h2+238*g2,e2,h2+239*g2,e2+9*g2);

bar(h4+36*g4,e4+5*g4,h4+37*g4,e4+6*g4); bar(h4+10*g4,e4+23*g4,h4+13*g4,e4+24*g4);
bar(h2+239*g2,e2,h2+255*g2,e2+1*g2);
bar(h4+37*g4,e4+6*g4,h4+38*g4,e4+7*g4); bar(h4+8*g4,e4+22*g4,h4+10*g4,e4+23*g4);
bar(h2+239*g2,e2+4*g2,h2+246*g2,e2+5*g2);

bar(h4+38*g4,e4+7*g4,h4+39*g4,e4+10*g4); bar(h4+7*g4,e4+21*g4,h4+8*g4,e4+22*g4);
bar(h2+245*g2,e2+1*g2,h2+246*g2,e2+9*g2);
bar(h4+39*g4,e4+10*g4,h4+40*g4,e4+12*g4); bar(h4+4*g4,e4+20*g4,h4+7*g4,e4+21*g4);
bar(h2+254*g2,e2,h2+255*g2,e2+9*g2);

} bar(h4+40*g4,e4+12*g4,h4+41*g4,e4+13*g4); bar(h4+3*g4,e4+18*g4,h4+4*g4,e4+20*g4);

void juegos::sPasto1(int h4, int e4, int g4) bar(h4+41*g4,e4+11*g4,h4+42*g4,e4+12*g4); bar(h4+2*g4,e4+17*g4,h4+3*g4,e4+18*g4);


{ setcolor(BLACK);
setfillstyle(1,BLACK);
bar(h4,e4+13*g4,h4+1*g4,e4+15*g4); bar(h4+42*g4,e4+10*g4,h4+43*g4,e4+11*g4); bar(h4+1*g4,e4+15*g4,h4+2*g4,e4+17*g4);

bar(h4+1*g4,e4+12*g4,h4+3*g4,e4+13*g4); bar(h4+43*g4,e4+11*g4,h4+44*g4,e4+14*g4); bar(h4+0*g4,e4+13*g4,h4+1*g4,e4+15*g4);


setcolor(GREEN);
setfillstyle(1,GREEN);
bar(h4+3*g4,e4+11*g4,h4+4*g4,e4+12*g4); bar(h4+44*g4,e4+14*g4,h4+45*g4,e4+15*g4);

bar(h4+1*g4,e4+13*g4,h4+3*g4,e4+15*g4);
bar(h4+4*g4,e4+10*g4,h4+5*g4,e4+11*g4); bar(h4+45*g4,e4+13*g4,h4+46*g4,e4+14*g4);

bar(h4+2*g4,e4+15*g4,h4+3*g4,e4+17*g4);
bar(h4+5*g4,e4+9*g4,h4+8*g4,e4+10*g4); bar(h4+46*g4,e4+14*g4,h4+47*g4,e4+16*g4);

bar(h4+3*g4,e4+12*g4,h4+4*g4,e4+18*g4);
bar(h4+8*g4,e4+8*g4,h4+9*g4,e4+9*g4); bar(h4+45*g4,e4+16*g4,h4+46*g4,e4+17*g4);

bar(h4+4*g4,e4+11*g4,h4+5*g4,e4+12*g4);
bar(h4+9*g4,e4+7*g4,h4+10*g4,e4+8*g4); bar(h4+44*g4,e4+17*g4,h4+45*g4,e4+18*g4);

bar(h4+4*g4,e4+12*g4,h4+7*g4,e4+20*g4);
bar(h4+10*g4,e4+4*g4,h4+11*g4,e4+7*g4); bar(h4+45*g4,e4+18*g4,h4+46*g4,e4+19*g4);

bar(h4+5*g4,e4+10*g4,h4+8*g4,e4+12*g4);
bar(h4+11*g4,e4+3*g4,h4+13*g4,e4+4*g4); bar(h4+46*g4,e4+19*g4,h4+47*g4,e4+20*g4);
bar(h4+13*g4,e4+2*g4,h4+14*g4,e4+3*g4);
bar(h4+8*g4,e4+9*g4,h4+9*g4,e4+12*g4);
bar(h4+44*g4,e4+20*g4,h4+46*g4,e4+21*g4);
bar(h4+14*g4,e4+1*g4,h4+18*g4,e4+2*g4);
bar(h4+7*g4,e4+12*g4,h4+9*g4,e4+21*g4);
bar(h4+42*g4,e4+21*g4,h4+44*g4,e4+22*g4);
bar(h4+9*g4,e4+8*g4,h4+10*g4,e4+21*g4); bar(h4+33*g4,e4+6*g4,h4+35*g4,e4+7*g4); bar(h5+23*g5,e5+8*g5,h5+25*g5,e5+9*g5);

bar(h4+8*g4,e4+21*g4,h4+10*g4,e4+22*g4); bar(h4+33*g4,e4+7*g4,h4+37*g4,e4+23*g4); bar(h5+25*g5,e5+7*g5,h5+26*g5,e5+8*g5);

bar(h4+11*g4,e4+4*g4,h4+13*g4,e4+7*g4); bar(h4+36*g4,e4+6*g4,h4+37*g4,e4+7*g4); bar(h5+26*g5,e5+5*g5,h5+27*g5,e5+7*g5);

bar(h4+10*g4,e4+7*g4,h4+12*g4,e4+9*g4); bar(h4+37*g4,e4+7*g4,h4+38*g4,e4+22*g4); bar(h5+27*g5,e5+4*g5,h5+29*g5,e5+5*g5);

bar(h4+10*g4,e4+9*g4,h4+13*g4,e4+23*g4); bar(h4+38*g4,e4+10*g4,h4+39*g4,e4+22*g4); bar(h5+29*g5,e5+3*g5,h5+30*g5,e5+4*g5);

bar(h4+13*g4,e4+3*g4,h4+15*g4,e4+7*g4); bar(h4+39*g4,e4+12*g4,h4+40*g4,e4+21*g4); bar(h5+30*g5,e5+2*g5,h5+33*g5,e5+3*g5);

bar(h4+13*g4,e4+8*g4,h4+15*g4,e4+21*g4); bar(h4+40*g4,e4+13*g4,h4+42*g4,e4+22*g4); bar(h5+33*g5,e5+3*g5,h5+34*g5,e5+4*g5);

bar(h4+13*g4,e4+21*g4,h4+14*g4,e4+22*g4); bar(h4+41*g4,e4+12*g4,h4+42*g4,e4+13*g4); bar(h5+34*g5,e5+4*g5,h5+35*g5,e5+6*g5);

bar(h4+14*g4,e4+2*g4,h4+18*g4,e4+3*g4); bar(h4+42*g4,e4+11*g4,h4+43*g4,e4+14*g4); bar(h5+35*g5,e5+6*g5,h5+36*g5,e5+7*g5);

bar(h4+15*g4,e4+3*g4,h4+17*g4,e4+22*g4); bar(h4+42*g4,e4+14*g4,h4+44*g4,e4+21*g4); bar(h5+36*g5,e5+5*g5,h5+37*g5,e5+6*g5);

bar(h4+17*g4,e4+3*g4,h4+19*g4,e4+6*g4); bar(h4+44*g4,e4+15*g4,h4+45*g4,e4+17*g4); bar(h5+37*g5,e5+6*g5,h5+38*g5,e5+7*g5);

bar(h4+18*g4,e4+6*g4,h4+19*g4,e4+7*g4); bar(h4+45*g4,e4+14*g4,h4+46*g4,e4+16*g4); bar(h5+38*g5,e5+7*g5,h5+39*g5,e5+10*g5);

bar(h4+19*g4,e4+5*g4,h4+20*g4,e4+6*g4); bar(h4+44*g4,e4+18*g4,h4+45*g4,e4+20*g4); bar(h5+39*g5,e5+10*g5,h5+40*g5,e5+12*g5);

bar(h4+19*g4,e4+6*g4,h4+21*g4,e4+8*g4); bar(h4+45*g4,e4+19*g4,h4+46*g4,e4+20*g4); bar(h5+40*g5,e5+12*g5,h5+41*g5,e5+13*g5);


}
bar(h4+17*g4,e4+7*g4,h4+18*g4,e4+8*g4); bar(h5+41*g5,e5+11*g5,h5+42*g5,e5+12*g5);
void juegos::sPasto2(int h5, int e5, int g5)
{ setcolor(BLACK);
bar(h4+17*g4,e4+8*g4,h4+21*g4,e4+23*g4); setfillstyle(1,BLACK); bar(h5+42*g5,e5+10*g5,h5+43*g5,e5+11*g5);
bar(h5,e5+13*g5,h5+1*g5,e5+15*g5);
bar(h4+21*g4,e4+5*g4,h4+22*g4,e4+6*g4); bar(h5+43*g5,e5+11*g5,h5+44*g5,e5+14*g5);
bar(h5+1*g5,e5+12*g5,h5+3*g5,e5+13*g5);

bar(h4+21*g4,e4+6*g4,h4+24*g4,e4+22*g4); bar(h5+44*g5,e5+14*g5,h5+45*g5,e5+15*g5);
bar(h5+3*g5,e5+11*g5,h5+4*g5,e5+12*g5);
bar(h4+23*g4,e4+9*g4,h4+25*g4,e4+21*g4); bar(h5+45*g5,e5+13*g5,h5+46*g5,e5+14*g5);
bar(h5+4*g5,e5+10*g5,h5+5*g5,e5+11*g5);

bar(h4+24*g4,e4+21*g4,h4+25*g4,e4+22*g4); bar(h5+46*g5,e5+14*g5,h5+47*g5,e5+16*g5);
bar(h5+5*g5,e5+9*g5,h5+8*g5,e5+10*g5);
bar(h4+26*g4,e4+7*g4,h4+27*g4,e4+8*g4); bar(h5+45*g5,e5+16*g5,h5+46*g5,e5+17*g5);
bar(h5+8*g5,e5+8*g5,h5+9*g5,e5+9*g5);

bar(h4+25*g4,e4+8*g4,h4+28*g4,e4+22*g4); bar(h5+44*g5,e5+17*g5,h5+45*g5,e5+18*g5);
bar(h5+9*g5,e5+7*g5,h5+10*g5,e5+8*g5);
bar(h4+27*g4,e4+5*g4,h4+29*g4,e4+8*g4); bar(h5+45*g5,e5+18*g5,h5+46*g5,e5+19*g5);
bar(h5+10*g5,e5+4*g5,h5+11*g5,e5+7*g5);

bar(h4+26*g4,e4+22*g4,h4+29*g4,e4+23*g4); bar(h5+46*g5,e5+19*g5,h5+47*g5,e5+20*g5);
bar(h5+11*g5,e5+3*g5,h5+13*g5,e5+4*g5);
bar(h5+13*g5,e5+2*g5,h5+14*g5,e5+3*g5);
bar(h4+30*g4,e4+3*g4,h4+33*g4,e4+4*g4); bar(h5+44*g5,e5+20*g5,h5+46*g5,e5+21*g5);

bar(h5+14*g5,e5+1*g5,h5+18*g5,e5+2*g5);
bar(h4+29*g4,e4+4*g4,h4+31*g4,e4+7*g4); bar(h5+42*g5,e5+21*g5,h5+44*g5,e5+22*g5);

bar(h5+18*g5,e5+2*g5,h5+19*g5,e5+3*g5);
bar(h4+29*g4,e4+8*g4,h4+30*g4,e4+9*g4); bar(h5+40*g5,e5+22*g5,h5+42*g5,e5+23*g5);

bar(h5+19*g5,e5+3*g5,h5+20*g5,e5+5*g5);
bar(h4+28*g4,e4+9*g4,h4+30*g4,e4+22*g4); bar(h5+39*g5,e5+21*g5,h5+40*g5,e5+22*g5);

bar(h5+20*g5,e5+5*g5,h5+21*g5,e5+6*g5);
bar(h4+31*g4,e4+4*g4,h4+34*g4,e4+6*g4); bar(h5+37*g5,e5+22*g5,h5+39*g5,e5+23*g5);

bar(h5+21*g5,e5+4*g5,h5+22*g5,e5+5*g5);
bar(h4+31*g4,e4+6*g4,h4+32*g4,e4+7*g4); bar(h5+33*g5,e5+23*g5,h5+37*g5,e5+24*g5);

bar(h5+22*g5,e5+5*g5,h5+23*g5,e5+6*g5);
bar(h4+30*g4,e4+8*g4,h4+31*g4,e4+21*g4); bar(h5+31*g5,e5+22*g5,h5+33*g5,e5+23*g5);

bar(h5+23*g5,e5+6*g5,h5+24*g5,e5+8*g5);
bar(h4+31*g4,e4+7*g4,h4+33*g4,e4+22*g4); bar(h5+30*g5,e5+21*g5,h5+31*g5,e5+22*g5);
bar(h5+29*g5,e5+22*g5,h5+30*g5,e5+23*g5); bar(h5+13*g5,e5+8*g5,h5+15*g5,e5+21*g5); bar(h5+40*g5,e5+13*g5,h5+42*g5,e5+22*g5);

bar(h5+26*g5,e5+23*g5,h5+29*g5,e5+24*g5); bar(h5+13*g5,e5+21*g5,h5+14*g5,e5+22*g5); bar(h5+41*g5,e5+12*g5,h5+42*g5,e5+13*g5);

bar(h5+24*g5,e5+22*g5,h5+26*g5,e5+23*g5); bar(h5+14*g5,e5+2*g5,h5+18*g5,e5+3*g5); bar(h5+42*g5,e5+11*g5,h5+43*g5,e5+14*g5);

bar(h5+23*g5,e5+21*g5,h5+24*g5,e5+22*g5); bar(h5+15*g5,e5+3*g5,h5+17*g5,e5+22*g5); bar(h5+42*g5,e5+14*g5,h5+44*g5,e5+21*g5);

bar(h5+21*g5,e5+22*g5,h5+23*g5,e5+23*g5); bar(h5+17*g5,e5+3*g5,h5+19*g5,e5+6*g5); bar(h5+44*g5,e5+15*g5,h5+45*g5,e5+17*g5);

bar(h5+17*g5,e5+23*g5,h5+21*g5,e5+24*g5); bar(h5+18*g5,e5+6*g5,h5+19*g5,e5+7*g5); bar(h5+45*g5,e5+14*g5,h5+46*g5,e5+16*g5);

bar(h5+15*g5,e5+22*g5,h5+17*g5,e5+23*g5); bar(h5+19*g5,e5+5*g5,h5+20*g5,e5+6*g5); bar(h5+44*g5,e5+18*g5,h5+45*g5,e5+20*g5);

bar(h5+14*g5,e5+21*g5,h5+15*g5,e5+22*g5); bar(h5+19*g5,e5+6*g5,h5+21*g5,e5+8*g5); bar(h5+45*g5,e5+19*g5,h5+46*g5,e5+20*g5);


}
bar(h5+13*g5,e5+22*g5,h5+14*g5,e5+23*g5); bar(h5+17*g5,e5+7*g5,h5+18*g5,e5+8*g5); void juegos::hongo2(int x1, int y1,int c,int sf)
{
bar(h5+10*g5,e5+23*g5,h5+13*g5,e5+24*g5); bar(h5+17*g5,e5+8*g5,h5+21*g5,e5+23*g5); setcolor(BLACK);
setfillstyle(1,BLACK);
bar(x1,y1,x1+6*c,y1+1*c);//1
bar(h5+8*g5,e5+22*g5,h5+10*g5,e5+23*g5); bar(h5+21*g5,e5+5*g5,h5+22*g5,e5+6*g5); bar(x1-
1*c,y1+10*c,x1+7*c,y1+11*c);//2
bar(h5+7*g5,e5+21*g5,h5+8*g5,e5+22*g5); bar(h5+21*g5,e5+6*g5,h5+24*g5,e5+22*g5); bar(x1-4*c,y1+11*c,x1-
1*c,y1+12*c);//4

bar(h5+4*g5,e5+20*g5,h5+7*g5,e5+21*g5); bar(h5+23*g5,e5+9*g5,h5+25*g5,e5+21*g5);
bar(x1+7*c,y1+11*c,x1+10*c,y1+12*c);//5
bar(x1-3*c,y1+12*c,x1-
bar(h5+3*g5,e5+18*g5,h5+4*g5,e5+20*g5); bar(h5+24*g5,e5+21*g5,h5+25*g5,e5+22*g5); 2*c,y1+14*c);//6
bar(x1-2*c,y1+14*c,x1-
bar(h5+2*g5,e5+17*g5,h5+3*g5,e5+18*g5); bar(h5+26*g5,e5+7*g5,h5+27*g5,e5+8*g5); 1*c,y1+15*c);//10

bar(x1+1*c,y1+11*c,x1+2*c,y1+13*c);//7
bar(h5+1*g5,e5+15*g5,h5+2*g5,e5+17*g5); bar(h5+25*g5,e5+8*g5,h5+28*g5,e5+22*g5);

bar(h5+0*g5,e5+13*g5,h5+1*g5,e5+15*g5); bar(h5+27*g5,e5+5*g5,h5+29*g5,e5+8*g5); bar(x1+4*c,y1+11*c,x1+5*c,y1+13*c);//8


setcolor(GREEN);
setfillstyle(1,GREEN); bar(x1+8*c,y1+12*c,x1+9*c,y1+14*c);//9
bar(h5+26*g5,e5+22*g5,h5+29*g5,e5+23*g5);

bar(h5+1*g5,e5+13*g5,h5+3*g5,e5+15*g5); bar(x1+7*c,y1+14*c,x1+8*c,y1+15*c);//11
bar(h5+30*g5,e5+3*g5,h5+33*g5,e5+4*g5);
bar(x1-5*c,y1+5*c,x1-
bar(h5+2*g5,e5+15*g5,h5+3*g5,e5+17*g5); 4*c,y1+11*c);//12
bar(h5+29*g5,e5+4*g5,h5+31*g5,e5+7*g5);
bar(x1+10*c,y1+5*c,x1+11*c,y1+11*c);//13
bar(h5+3*g5,e5+12*g5,h5+4*g5,e5+18*g5);
bar(h5+29*g5,e5+8*g5,h5+30*g5,e5+9*g5); bar(x1-4*c,y1+3*c,x1-3*c,y1+5*c);//14

bar(h5+4*g5,e5+11*g5,h5+5*g5,e5+12*g5);
bar(h5+28*g5,e5+9*g5,h5+30*g5,e5+22*g5); bar(x1+9*c,y1+3*c,x1+10*c,y1+5*c);//15
bar(x1-3*c,y1+2*c,x1-2*c,y1+3*c);//16
bar(h5+4*g5,e5+12*g5,h5+7*g5,e5+20*g5);
bar(h5+31*g5,e5+4*g5,h5+34*g5,e5+6*g5);
bar(x1+8*c,y1+2*c,x1+9*c,y1+3*c);//17
bar(h5+5*g5,e5+10*g5,h5+8*g5,e5+12*g5); bar(x1-2*c,y1+1*c,x1,y1+2*c);//18
bar(h5+31*g5,e5+6*g5,h5+32*g5,e5+7*g5);

bar(h5+8*g5,e5+9*g5,h5+9*g5,e5+12*g5); bar(x1+6*c,y1+1*c,x1+8*c,y1+2*c);//19
bar(h5+30*g5,e5+8*g5,h5+31*g5,e5+21*g5);
bar(x1-
1*c,y1+15*c,x1+7*c,y1+16*c);//3
bar(h5+7*g5,e5+12*g5,h5+9*g5,e5+21*g5);
bar(h5+31*g5,e5+7*g5,h5+33*g5,e5+22*g5); setfillstyle(1,sf);

bar(h5+9*g5,e5+8*g5,h5+10*g5,e5+21*g5);
bar(h5+33*g5,e5+6*g5,h5+35*g5,e5+7*g5); bar(x1+2*c,y1+1*c,x1+6*c,y1+3*c);//20

bar(h5+8*g5,e5+21*g5,h5+10*g5,e5+22*g5);
bar(h5+33*g5,e5+7*g5,h5+37*g5,e5+23*g5); bar(x1+1*c,y1+3*c,x1+7*c,y1+4*c);//21
bar(x1,y1+4*c,x1+2*c,y1+5*c);//22
bar(h5+11*g5,e5+4*g5,h5+13*g5,e5+7*g5);
bar(h5+36*g5,e5+6*g5,h5+37*g5,e5+7*g5);
bar(x1+6*c,y1+4*c,x1+8*c,y1+5*c);//23
bar(h5+10*g5,e5+7*g5,h5+12*g5,e5+9*g5); bar(x1-
bar(h5+37*g5,e5+7*g5,h5+38*g5,e5+22*g5); 4*c,y1+5*c,x1+1*c,y1+6*c);//24
bar(h5+10*g5,e5+9*g5,h5+13*g5,e5+23*g5);
bar(h5+38*g5,e5+10*g5,h5+39*g5,e5+22*g5); bar(x1+7*c,y1+5*c,x1+10*c,y1+6*c);//25
bar(x1-4*c,y1+6*c,x1-3*c,y1+7*c);//26
bar(h5+13*g5,e5+3*g5,h5+15*g5,e5+7*g5); bar(x1-
bar(h5+39*g5,e5+12*g5,h5+40*g5,e5+21*g5);
1*c,y1+6*c,x1+1*c,y1+7*c);//27
bar(x-3*c,y+13*c,x-2*c,y+19*c);//47 bar(x-3*c,y+22*c,x-2*c,y+24*c);//37
bar(x+6*c,y+13*c,x+7*c,y+19*c);//48 bar(x+6*c,y+22*c,x+7*c,y+24*c);//38
bar(x1+7*c,y1+6*c,x1+10*c,y1+7*c);//28 bar(x-4*c,y+14*c,x-3*c,y+19*c);//47 bar(x-4*c,y+23*c,x-3*c,y+24*c);//39
bar(x1,y1+7*c,x1+1*c,y1+8*c);//29 bar(x+7*c,y+14*c,x+8*c,y+19*c);//48 bar(x+7*c,y+23*c,x+8*c,y+24*c);//40
bar(x-5*c,y+15*c,x-4*c,y+19*c);//49 bar(x-5*c,y+24*c,x+1*c,y+25*c);//41
bar(x1+7*c,y1+7*c,x1+9*c,y1+8*c);//30 bar(x+8*c,y+15*c,x+9*c,y+19*c);//50 bar(x+3*c,y+24*c,x+9*c,y+25*c);//42
bar(x1,y1+8*c,x1+2*c,y1+9*c);//31 bar(x-6*c,y+17*c,x-5*c,y+19*c);//49 bar(x-5*c,y+25*c,x,y+27*c);//43
bar(x+4*c,y+25*c,x+9*c,y+27*c);//44
setfillstyle(1,LIGHTGRAY);
bar(x1+6*c,y1+8*c,x1+8*c,y1+9*c);//32 bar(x+9*c,y+17*c,x+10*c,y+19*c);//50 bar(x-2*c,y+12*c,x-1*c,y+16*c);//45
bar(x1-4*c,y1+9*c,x1- bar(x,y+12*c,x+4*c,y+18*c);//51 bar(x+5*c,y+12*c,x+6*c,y+16*c);//46
3*c,y1+10*c);//33 bar(x-3*c,y+13*c,x-2*c,y+19*c);//47
bar(x1- bar(x+6*c,y+13*c,x+7*c,y+19*c);//48
setfillstyle(1,YELLOW);
1*c,y1+9*c,x1+8*c,y1+10*c);//34 bar(x-4*c,y+14*c,x-3*c,y+19*c);//47
bar(x-6*c,y+19*c,x-2*c,y+21*c);//52
bar(x1-4*c,y1+10*c,x1- bar(x+7*c,y+14*c,x+8*c,y+19*c);//48
1*c,y1+11*c);//35 bar(x-5*c,y+15*c,x-4*c,y+19*c);//49
bar(x+6*c,y+19*c,x+10*c,y+21*c);//53 bar(x+8*c,y+15*c,x+9*c,y+19*c);//50
bar(x-5*c,y+21*c,x-2*c,y+22*c);//54 bar(x-6*c,y+17*c,x-5*c,y+19*c);//49
bar(x1+7*c,y1+10*c,x1+9*c,y1+11*c);//36 bar(x+6*c,y+21*c,x+9*c,y+22*c);//55
} bar(x-5*c,y+22*c,x-3*c,y+23*c);//56
bar(x+7*c,y+22*c,x+9*c,y+23*c);//57 bar(x+9*c,y+17*c,x+10*c,y+19*c);//50
void juegos::sMarioParadoDer(int x, int y,int c) bar(x,y+12*c,x+4*c,y+18*c);//51
setfillstyle(1,BROWN);
{ //cabeza bar(x-4*c,y+27*c,x,y+29*c);//58
setcolor(BLACK); bar(x+4*c,y+27*c,x+8*c,y+29*c);//59
setfillstyle(1,RED); setfillstyle(1,YELLOW);
bar(x-6*c,y+29*c,x,y+31*c);//60
bar(x,y,x+5*c,y+1*c);//1 bar(x-6*c,y+19*c,x-2*c,y+21*c);//52
bar(x-2*c,y+1*c,x+5*c,y+2*c);//2
bar(x-3*c,y+2*c,x+4*c,y+3*c);//3 bar(x+4*c,y+29*c,x+10*c,y+31*c);//61 bar(x+6*c,y+19*c,x+10*c,y+21*c);//53
bar(x-3*c,y+3*c,x+9*c,y+4*c);//4 setfillstyle(1,YELLOW); bar(x-5*c,y+21*c,x-2*c,y+22*c);//54
setfillstyle(1,BLACK); bar(x-1*c,y+19*c,x,y+20*c);//62 bar(x+6*c,y+21*c,x+9*c,y+22*c);//55
bar(x+4*c,y+1*c,x+5*c,y+2*c);//5 bar(x+4*c,y+19*c,x+5*c,y+20*c);//63 bar(x-5*c,y+22*c,x-3*c,y+23*c);//56
bar(x+3*c,y+2*c,x+5*c,y+3*c);//6 } bar(x+7*c,y+22*c,x+9*c,y+23*c);//57
void juegos::sMarioParadoDer1(int x, int y,int c) setfillstyle(1,LIGHTGRAY);
{ //cabeza
setfillstyle(1,BROWN); bar(x-4*c,y+27*c,x,y+29*c);//58
setcolor(BLACK);
bar(x-4*c,y+5*c,x-3*c,y+7*c);//7 bar(x+4*c,y+27*c,x+8*c,y+29*c);//59
setfillstyle(1,BLUE);
bar(x-5*c,y+7*c,x-3*c,y+10*c);//8 bar(x-6*c,y+29*c,x,y+31*c);//60
bar(x,y,x+5*c,y+1*c);//1
bar(x-3*c,y+9*c,x-2*c,y+11*c);//9 bar(x-2*c,y+1*c,x+5*c,y+2*c);//2
bar(x-2*c,y+10*c,x-1*c,y+11*c);//10 bar(x-3*c,y+2*c,x+4*c,y+3*c);//3 bar(x+4*c,y+29*c,x+10*c,y+31*c);//61
bar(x-3*c,y+3*c,x+9*c,y+4*c);//4 setfillstyle(1,YELLOW);
bar(x-3*c,y+4*c,x,y+5*c);//11 setfillstyle(1,BLACK); bar(x-1*c,y+19*c,x,y+20*c);//62
bar(x+2*c,y+4*c,x+3*c,y+5*c);//12 bar(x+4*c,y+1*c,x+5*c,y+2*c);//5 bar(x+4*c,y+19*c,x+5*c,y+20*c);//63
bar(x-1*c,y+5*c,x,y+6*c);//13 bar(x+3*c,y+2*c,x+5*c,y+3*c);//6 }
bar(x+2*c,y+5*c,x+4*c,y+6*c);//14
bar(x-1*c,y+6*c,x+1*c,y+8*c);//15 setfillstyle(1,BROWN);
bar(x+4*c,y+7*c,x+5*c,y+8*c);//16 bar(x-4*c,y+5*c,x-3*c,y+7*c);//7
bar(x+2*c,y+8*c,x+9*c,y+9*c);//17 void juegos::sMarioParadoArrA(int x, int y,int c)
bar(x-5*c,y+7*c,x-3*c,y+10*c);//8
bar(x+3*c,y+9*c,x+9*c,y+10*c);//18 { //cabeza
bar(x-3*c,y+9*c,x-2*c,y+11*c);//9
bar(x+4*c,y+11*c,x+5*c,y+12*c);//19 //Gorrito
bar(x-2*c,y+10*c,x-1*c,y+11*c);//10 setcolor(BLACK);
setfillstyle(1,RED);
bar(x-3*c,y+4*c,x,y+5*c);//11 bar(x,y,x-6*c,y+1*c);//1
setfillstyle(1,YELLOW); bar(x+2*c,y+4*c,x+3*c,y+5*c);//12 bar(x+2*c,y+1*c,x-5*c,y+2*c);//2
bar(x-3*c,y+5*c,x-1*c,y+9*c);//20 bar(x-1*c,y+5*c,x,y+6*c);//13 bar(x+3*c,y+2*c,x-4*c,y+3*c);//3
bar(x,y+4*c,x+2*c,y+6*c);//21 bar(x+2*c,y+5*c,x+4*c,y+6*c);//14 bar(x+3*c,y+3*c,x-9*c,y+4*c);//4
bar(x+3*c,y+4*c,x+7*c,y+5*c);//22 bar(x-1*c,y+6*c,x+1*c,y+8*c);//15 setfillstyle(1,BLACK);
bar(x+4*c,y+5*c,x+9*c,y+6*c);//23 bar(x+4*c,y+7*c,x+5*c,y+8*c);//16 bar(x-5*c,y+1*c,x-6*c,y+2*c);//5
bar(x+1*c,y+6*c,x+11*c,y+7*c);//24 bar(x+2*c,y+8*c,x+9*c,y+9*c);//17 bar(x-4*c,y+2*c,x-6*c,y+3*c);//6
bar(x+1*c,y+7*c,x+4*c,y+8*c);//25 bar(x+3*c,y+9*c,x+9*c,y+10*c);//18
bar(x+5*c,y+7*c,x+11*c,y+8*c);//26 bar(x+4*c,y+11*c,x+5*c,y+12*c);//19 //Barba y cabello
bar(x-1*c,y+8*c,x+2*c,y+9*c);//27 setfillstyle(1,BROWN);
bar(x-2*c,y+9*c,x+3*c,y+10*c);//28 bar(x+4*c,y+5*c,x+3*c,y+7*c);//7
bar(x-1*c,y+10*c,x+8*c,y+11*c);//29 bar(x+5*c,y+7*c,x+3*c,y+10*c);//8
bar(x-1*c,y+11*c,x+4*c,y+12*c);//30 setfillstyle(1,YELLOW); bar(x+3*c,y+9*c,x+2*c,y+11*c);//9
bar(x-3*c,y+5*c,x-1*c,y+9*c);//20 bar(x+2*c,y+10*c,x+1*c,y+11*c);//10
bar(x,y+4*c,x+2*c,y+6*c);//21
setfillstyle(1,RED); bar(x+3*c,y+4*c,x,y+5*c);//11
bar(x+3*c,y+4*c,x+7*c,y+5*c);//22
bar(x-2*c,y+11*c,x-1*c,y+12*c);//31 bar(x-2*c,y+4*c,x-3*c,y+5*c);//12
bar(x+4*c,y+5*c,x+9*c,y+6*c);//23
bar(x-1*c,y+12*c,x,y+16*c);//32 bar(x+1*c,y+5*c,x,y+6*c);//13
bar(x+1*c,y+6*c,x+11*c,y+7*c);//24
bar(x+4*c,y+12*c,x+5*c,y+16*c);//33 bar(x-2*c,y+5*c,x-4*c,y+6*c);//14
bar(x+1*c,y+7*c,x+4*c,y+8*c);//25
bar(x-2*c,y+16*c,x,y+18*c);//34 bar(x+1*c,y+6*c,x-1*c,y+8*c);//15
bar(x+5*c,y+7*c,x+11*c,y+8*c);//26
bar(x+4*c,y+16*c,x+6*c,y+18*c);//35 bar(x-4*c,y+7*c,x-5*c,y+8*c);//16
bar(x-1*c,y+8*c,x+2*c,y+9*c);//27
bar(x-2*c,y+18*c,x+6*c,y+24*c);//36 bar(x-2*c,y+8*c,x-9*c,y+9*c);//17
bar(x-2*c,y+9*c,x+3*c,y+10*c);//28
bar(x-3*c,y+22*c,x-2*c,y+24*c);//37 bar(x-3*c,y+9*c,x-9*c,y+10*c);//18
bar(x-1*c,y+10*c,x+8*c,y+11*c);//29
bar(x+6*c,y+22*c,x+7*c,y+24*c);//38 bar(x-4*c,y+11*c,x-5*c,y+12*c);//19
bar(x-1*c,y+11*c,x+4*c,y+12*c);//30
bar(x-4*c,y+23*c,x-3*c,y+24*c);//39
bar(x+7*c,y+23*c,x+8*c,y+24*c);//40
bar(x-5*c,y+24*c,x+1*c,y+25*c);//41 setfillstyle(1,BLUE); // cara
bar(x+3*c,y+24*c,x+9*c,y+25*c);//42 bar(x-2*c,y+11*c,x-1*c,y+12*c);//31 setfillstyle(1,YELLOW);
bar(x-5*c,y+25*c,x,y+27*c);//43 bar(x-1*c,y+12*c,x,y+16*c);//32 bar(x+3*c,y+5*c,x+1*c,y+9*c);//20
bar(x+4*c,y+25*c,x+9*c,y+27*c);//44 bar(x+4*c,y+12*c,x+5*c,y+16*c);//33 bar(x,y+4*c,x-2*c,y+6*c);//21
setfillstyle(1,BROWN); bar(x-2*c,y+16*c,x,y+18*c);//34 bar(x-3*c,y+4*c,x-7*c,y+5*c);//22
bar(x-2*c,y+12*c,x-1*c,y+16*c);//45 bar(x+4*c,y+16*c,x+6*c,y+18*c);//35 bar(x-4*c,y+5*c,x-9*c,y+6*c);//23
bar(x+5*c,y+12*c,x+6*c,y+16*c);//46 bar(x-2*c,y+18*c,x+6*c,y+24*c);//36 bar(x-1*c,y+6*c,x-11*c,y+7*c);//24
bar(x-1*c,y+7*c,x-4*c,y+8*c);//25 setfillstyle(1,BLACK);
bar(x-5*c,y+7*c,x-11*c,y+8*c);//26 bar(x-5*c,y+1*c,x-6*c,y+2*c);//5 //Manos
bar(x+1*c,y+8*c,x-2*c,y+9*c);//27 bar(x-4*c,y+2*c,x-6*c,y+3*c);//6 setfillstyle(1,YELLOW);
bar(x+2*c,y+9*c,x-3*c,y+10*c);//28 bar(x-8*c,y+14*c,x-6*c,y+15*c);//14
bar(x+1*c,y+10*c,x-8*c,y+11*c);//29 //Barba y cabello bar(x-11*c,y+15*c,x-6*c,y+17*c);//15
bar(x+1*c,y+11*c,x-4*c,y+12*c);//30 setfillstyle(1,BROWN); bar(x-11*c,y+17*c,x-7*c,y+19*c);//17
bar(x+4*c,y+5*c,x+3*c,y+7*c);//7
bar(x+5*c,y+7*c,x+3*c,y+10*c);//8 //Pies
//Cuerpo bar(x+3*c,y+9*c,x+2*c,y+11*c);//9 setfillstyle(1,LIGHTGRAY);
setfillstyle(1,BROWN); bar(x+2*c,y+10*c,x+1*c,y+11*c);//10 bar(x+3*c,y+22*c,x+8*c,y+27*c);//22
bar(x+1*c,y+10*c,x+2,y+11*c);//10 bar(x+5*c,y+27*c,x+8*c,y+28*c);//22
bar(x-2*c,y+11*c,x-4,y+12*c);//11 bar(x+3*c,y+4*c,x,y+5*c);//11 bar(x+6*c,y+28*c,x+8*c,y+29*c);//22
bar(x+2*c,y+11*c,x+3,y+12*c);//11 bar(x-2*c,y+4*c,x-3*c,y+5*c);//12
bar(x-4*c,y+12*c,x-3*c,y+13*c);//12 bar(x+1*c,y+5*c,x,y+6*c);//13
bar(x+3*c,y+12*c,x+4*c,y+13*c);//12 bar(x-2*c,y+5*c,x-4*c,y+6*c);//14 bar(x-8*c,y+26*c,x-3*c,y+30*c);//26
bar(x-5*c,y+13*c,x-4*c,y+14*c);//13 bar(x+1*c,y+6*c,x-1*c,y+8*c);//15 bar(x-10*c,y+28*c,x-8*c,y+30*c);//28
bar(x+3*c,y+13*c,x+4*c,y+14*c);//13 bar(x-4*c,y+7*c,x-5*c,y+8*c);//16 bar(x-11*c,y+29*c,x-10*c,y+30*c);//29
bar(x+4*c,y+14*c,x+5,y+15*c);//14 bar(x-2*c,y+8*c,x-9*c,y+9*c);//17 }
bar(x+4*c,y+15*c,x+5,y+17*c);//15-17 bar(x-3*c,y+9*c,x-9*c,y+10*c);//18
bar(x-7*c,y+21*c,x-6,y+22*c);//21 bar(x-4*c,y+11*c,x-5*c,y+12*c);//19 void juegos::sMarioParadoArr(int x, int y,int c)
bar(x-6*c,y+22*c,x-5,y+23*c);//22 { //cabeza
bar(x-5*c,y+23*c,x-3,y+24*c);//23 //Gorrito
bar(x-3*c,y+24*c,x-2,y+25*c);//24 // cara setcolor(BLACK);
setfillstyle(1,YELLOW); setfillstyle(1,RED);
//Oberol bar(x+3*c,y+5*c,x+1*c,y+9*c);//20 bar(x,y,x+5*c,y+1*c);//1
setfillstyle(1,RED); bar(x,y+4*c,x-2*c,y+6*c);//21 bar(x-
bar(x-2*c,y+11*c,x+2*c,y+12*c);//11 bar(x-3*c,y+4*c,x-7*c,y+5*c);//22 2*c,y+1*c,x+4*c,y+2*c);//2
bar(x-3*c,y+12*c,x-1,y+13*c);//12 bar(x-4*c,y+5*c,x-9*c,y+6*c);//23
bar(x-
bar(x+2*c,y+12*c,x+3*c,y+15*c);//12-13-14 bar(x-1*c,y+6*c,x-11*c,y+7*c);//24 3*c,y+2*c,x+3*c,y+3*c);//3
bar(x-4*c,y+13*c,x-2,y+14*c);//13 bar(x-1*c,y+7*c,x-4*c,y+8*c);//25 bar(x-
bar(x-6*c,y+14*c,x-3*c,y+15*c);//14 bar(x-5*c,y+7*c,x-11*c,y+8*c);//26 3*c,y+3*c,x+9*c,y+4*c);//4
bar(x+2*c,y+15*c,x+4*c,y+16*c);//15 bar(x+1*c,y+8*c,x-2*c,y+9*c);//27 setfillstyle(1,BLACK);
bar(x+1*c,y+16*c,x+4*c,y+18*c);//16 bar(x+2*c,y+9*c,x-3*c,y+10*c);//28
bar(x,y+18*c,x+4*c,y+19*c);//18 bar(x+1*c,y+10*c,x-8*c,y+11*c);//29
bar(x-3*c,y+19*c,x+4*c,y+20*c);//19 bar(x+1*c,y+11*c,x-4*c,y+12*c);//30 bar(x+4*c,y+1*c,x+5*c,y+2*c);//5
bar(x-7*c,y+19*c,x-6*c,y+20*c);//19
bar(x-7*c,y+20*c,x+4*c,y+21*c);//20
//Cuerpo bar(x+3*c,y+2*c,x+5*c,y+3*c);//6
bar(x-6*c,y+21*c,x+4*c,y+22*c);//21
setfillstyle(1,BROWN);
bar(x-9*c,y+22*c,x-6*c,y+23*c);//22
bar(x+1*c,y+10*c,x+2,y+11*c);//10 //Barba y cabello
bar(x-9*c,y+23*c,x-5*c,y+24*c);//23
bar(x-2*c,y+11*c,x-4,y+12*c);//11 setfillstyle(1,BROWN);
bar(x-8*c,y+24*c,x-3*c,y+26*c);//24
bar(x+2*c,y+11*c,x+3,y+12*c);//11 bar(x-4*c,y+5*c,x-3*c,y+7*c);//7
bar(x-5*c,y+22*c,x+3*c,y+23*c);//22
bar(x-4*c,y+12*c,x-3*c,y+13*c);//12 bar(x-5*c,y+7*c,x-3*c,y+10*c);//8
bar(x-3*c,y+23*c,x+3*c,y+24*c);//23
bar(x+3*c,y+12*c,x+4*c,y+13*c);//12 bar(x-3*c,y+9*c,x-2*c,y+11*c);//9
bar(x-2*c,y+24*c,x+3*c,y+25*c);//24
bar(x-5*c,y+13*c,x-4*c,y+14*c);//13 bar(x-2*c,y+10*c,x-1*c,y+11*c);//10
bar(x,y+25*c,x+3*c,y+26*c);//25
bar(x+3*c,y+13*c,x+4*c,y+14*c);//13
//Playera
bar(x+4*c,y+14*c,x+5,y+15*c);//14
setfillstyle(1,BROWN); bar(x-3*c,y+4*c,x,y+5*c);//11
bar(x+4*c,y+15*c,x+5,y+17*c);//15-17
bar(x-1*c,y+12*c,x+2*c,y+13*c);//12 bar(x+2*c,y+4*c,x+3*c,y+5*c);//12
bar(x-7*c,y+21*c,x-6,y+22*c);//21
bar(x-2*c,y+13*c,x+2*c,y+14*c);//13 bar(x-1*c,y+5*c,x,y+6*c);//13
bar(x-6*c,y+22*c,x-5,y+23*c);//22
bar(x-3*c,y+14*c,x+2*c,y+15*c);//14 bar(x+2*c,y+5*c,x+4*c,y+6*c);//14
bar(x-5*c,y+23*c,x-3,y+24*c);//23
bar(x-6*c,y+15*c,x+2*c,y+16*c);//15 bar(x-1*c,y+6*c,x+1*c,y+8*c);//15
bar(x-3*c,y+24*c,x-2,y+25*c);//24
bar(x-6*c,y+16*c,x+1*c,y+17*c);//16 bar(x+4*c,y+7*c,x+5*c,y+8*c);//16
bar(x-7*c,y+17*c,x+1*c,y+18*c);//17 bar(x+2*c,y+8*c,x+9*c,y+9*c);//17
//Oberol
bar(x-7*c,y+18*c,x,y+19*c);//18 bar(x+3*c,y+9*c,x+9*c,y+10*c);//18
setfillstyle(1,BLUE);
bar(x-6*c,y+19*c,x-3*c,y+20*c);//19 bar(x+4*c,y+11*c,x+5*c,y+12*c);//19
bar(x-2*c,y+11*c,x+2*c,y+12*c);//11
// cara
bar(x-3*c,y+12*c,x-1,y+13*c);//12
//Manos setfillstyle(1,YELLOW);
bar(x+2*c,y+12*c,x+3*c,y+15*c);//12-13-14
setfillstyle(1,YELLOW); bar(x-3*c,y+5*c,x-1*c,y+9*c);//20
bar(x-4*c,y+13*c,x-2,y+14*c);//13
bar(x-8*c,y+14*c,x-6*c,y+15*c);//14 bar(x,y+4*c,x+2*c,y+6*c);//21
bar(x-6*c,y+14*c,x-3*c,y+15*c);//14
bar(x-11*c,y+15*c,x-6*c,y+17*c);//15 bar(x+3*c,y+4*c,x+7*c,y+5*c);//22
bar(x+2*c,y+15*c,x+4*c,y+16*c);//15
bar(x-11*c,y+17*c,x-7*c,y+19*c);//17 bar(x+4*c,y+5*c,x+9*c,y+6*c);//23
bar(x+1*c,y+16*c,x+4*c,y+18*c);//16
bar(x+1*c,y+6*c,x+11*c,y+7*c);//24
bar(x,y+18*c,x+4*c,y+19*c);//18
//Pies bar(x+1*c,y+7*c,x+4*c,y+8*c);//25
bar(x-3*c,y+19*c,x+4*c,y+20*c);//19
setfillstyle(1,BROWN); bar(x+5*c,y+7*c,x+11*c,y+8*c);//26
bar(x-7*c,y+19*c,x-6*c,y+20*c);//19
bar(x+3*c,y+22*c,x+8*c,y+27*c);//22 bar(x-1*c,y+8*c,x+2*c,y+9*c);//27
bar(x-7*c,y+20*c,x+4*c,y+21*c);//20
bar(x+5*c,y+27*c,x+8*c,y+28*c);//22 bar(x-2*c,y+9*c,x+3*c,y+10*c);//28
bar(x-6*c,y+21*c,x+4*c,y+22*c);//21
bar(x+6*c,y+28*c,x+8*c,y+29*c);//22 bar(x-1*c,y+10*c,x+8*c,y+11*c);//29
bar(x-9*c,y+22*c,x-6*c,y+23*c);//22
bar(x-1*c,y+11*c,x+4*c,y+12*c);//30
bar(x-9*c,y+23*c,x-5*c,y+24*c);//23
//Cuerpo
bar(x-8*c,y+24*c,x-3*c,y+26*c);//24
bar(x-8*c,y+26*c,x-3*c,y+30*c);//26 setfillstyle(1,BROWN);
bar(x-5*c,y+22*c,x+3*c,y+23*c);//22
bar(x-10*c,y+28*c,x-8*c,y+30*c);//28 bar(x-1*c,y+10*c,x-2,y+11*c);//10
bar(x-3*c,y+23*c,x+3*c,y+24*c);//23
bar(x-11*c,y+29*c,x-10*c,y+30*c);//29 bar(x+2*c,y+11*c,x+4,y+12*c);//11
bar(x-2*c,y+24*c,x+3*c,y+25*c);//24
} bar(x-2*c,y+11*c,x-3,y+12*c);//11
bar(x,y+25*c,x+3*c,y+26*c);//25
bar(x+4*c,y+12*c,x+3*c,y+13*c);//12
//Playera
void juegos::sMarioParadoArrA1(int x, int y,int c) bar(x-3*c,y+12*c,x-4*c,y+13*c);//12
setfillstyle(1,LIGHTGRAY);
{ //cabeza bar(x+5*c,y+13*c,x+4*c,y+14*c);//13
bar(x-1*c,y+12*c,x+2*c,y+13*c);//12
//Gorrito bar(x-3*c,y+13*c,x-4*c,y+14*c);//13
bar(x-2*c,y+13*c,x+2*c,y+14*c);//13
setcolor(BLACK); bar(x-4*c,y+14*c,x-5,y+15*c);//14
bar(x-3*c,y+14*c,x+2*c,y+15*c);//14
setfillstyle(1,BLUE); bar(x-4*c,y+15*c,x-5,y+17*c);//15-17
bar(x-6*c,y+15*c,x+2*c,y+16*c);//15
bar(x,y,x-6*c,y+1*c);//1 bar(x+7*c,y+21*c,x+6,y+22*c);//21
bar(x-6*c,y+16*c,x+1*c,y+17*c);//16
bar(x+2*c,y+1*c,x-5*c,y+2*c);//2 bar(x+6*c,y+22*c,x+5,y+23*c);//22
bar(x-7*c,y+17*c,x+1*c,y+18*c);//17
bar(x+3*c,y+2*c,x-4*c,y+3*c);//3 bar(x+5*c,y+23*c,x+3,y+24*c);//23
bar(x-7*c,y+18*c,x,y+19*c);//18
bar(x+3*c,y+3*c,x-9*c,y+4*c);//4 bar(x+3*c,y+24*c,x+2,y+25*c);//24
bar(x-6*c,y+19*c,x-3*c,y+20*c);//19
bar(x+4*c,y+7*c,x+5*c,y+8*c);//16
//Oberol bar(x+2*c,y+8*c,x+9*c,y+9*c);//17
void juegos::sMarioParadoDerA(int x, int y,int c)
setfillstyle(1,RED); bar(x+3*c,y+9*c,x+9*c,y+10*c);//18
{ //cabeza
bar(x+2*c,y+11*c,x-2*c,y+12*c);//11 bar(x+4*c,y+11*c,x+5*c,y+12*c);//19
setcolor(BLACK);
bar(x+3*c,y+12*c,x+1,y+13*c);//12 // cara
setfillstyle(1,RED);
bar(x-2*c,y+12*c,x-3*c,y+15*c);//12-13-14 setfillstyle(1,YELLOW);
bar(x,y,x-6*c,y+1*c);//1
bar(x+4*c,y+13*c,x+2,y+14*c);//13 bar(x-3*c,y+5*c,x-1*c,y+9*c);//20
bar(x+2*c,y+1*c,x-5*c,y+2*c);//2
bar(x+6*c,y+14*c,x+3*c,y+15*c);//14 bar(x,y+4*c,x+2*c,y+6*c);//21
bar(x+3*c,y+2*c,x-4*c,y+3*c);//3
bar(x-2*c,y+15*c,x-4*c,y+16*c);//15 bar(x+3*c,y+4*c,x+7*c,y+5*c);//22
bar(x+3*c,y+3*c,x-9*c,y+4*c);//4
bar(x-1*c,y+16*c,x-4*c,y+18*c);//16 bar(x+4*c,y+5*c,x+9*c,y+6*c);//23
setfillstyle(1,BLACK);
bar(x,y+18*c,x-4*c,y+19*c);//18 bar(x+1*c,y+6*c,x+11*c,y+7*c);//24
bar(x-5*c,y+1*c,x-6*c,y+2*c);//5
bar(x+3*c,y+19*c,x-4*c,y+20*c);//19 bar(x+1*c,y+7*c,x+4*c,y+8*c);//25
bar(x-4*c,y+2*c,x-6*c,y+3*c);//6
bar(x+7*c,y+19*c,x+6*c,y+20*c);//19 bar(x+5*c,y+7*c,x+11*c,y+8*c);//26
bar(x+7*c,y+20*c,x-4*c,y+21*c);//20 bar(x-1*c,y+8*c,x+2*c,y+9*c);//27
bar(x+6*c,y+21*c,x-4*c,y+22*c);//21 bar(x-2*c,y+9*c,x+3*c,y+10*c);//28 setfillstyle(1,BROWN);
bar(x+9*c,y+22*c,x+6*c,y+23*c);//22 bar(x-1*c,y+10*c,x+8*c,y+11*c);//29 bar(x+4*c,y+5*c,x+3*c,y+7*c);//7
bar(x+9*c,y+23*c,x+5*c,y+24*c);//23 bar(x-1*c,y+11*c,x+4*c,y+12*c);//30 bar(x+5*c,y+7*c,x+3*c,y+10*c);//8
bar(x+8*c,y+24*c,x+3*c,y+26*c);//24 //Cuerpo bar(x+3*c,y+9*c,x+2*c,y+11*c);//9
bar(x+5*c,y+22*c,x-3*c,y+23*c);//22 setfillstyle(1,BROWN); bar(x+2*c,y+10*c,x+1*c,y+11*c);//10
bar(x+3*c,y+23*c,x-3*c,y+24*c);//23 bar(x-1*c,y+10*c,x-2,y+11*c);//10
bar(x+2*c,y+24*c,x-3*c,y+25*c);//24 bar(x+2*c,y+11*c,x+4,y+12*c);//11
bar(x,y+25*c,x+-3*c,y+26*c);//25 bar(x-2*c,y+11*c,x-3,y+12*c);//11 bar(x+3*c,y+4*c,x,y+5*c);//11
//Playera bar(x+4*c,y+12*c,x+3*c,y+13*c);//12 bar(x-2*c,y+4*c,x-3*c,y+5*c);//12
setfillstyle(1,BROWN); bar(x-3*c,y+12*c,x-4*c,y+13*c);//12 bar(x+1*c,y+5*c,x,y+6*c);//13
bar(x+1*c,y+12*c,x-2*c,y+13*c);//12 bar(x+5*c,y+13*c,x+4*c,y+14*c);//13 bar(x-2*c,y+5*c,x-4*c,y+6*c);//14
bar(x+2*c,y+13*c,x-2*c,y+14*c);//13 bar(x-3*c,y+13*c,x-4*c,y+14*c);//13 bar(x+1*c,y+6*c,x-1*c,y+8*c);//15
bar(x+3*c,y+14*c,x-2*c,y+15*c);//14 bar(x-4*c,y+14*c,x-5,y+15*c);//14 bar(x-4*c,y+7*c,x-5*c,y+8*c);//16
bar(x+6*c,y+15*c,x-2*c,y+16*c);//15 bar(x-4*c,y+15*c,x-5,y+17*c);//15-17 bar(x-2*c,y+8*c,x-9*c,y+9*c);//17
bar(x+6*c,y+16*c,x-1*c,y+17*c);//16 bar(x+7*c,y+21*c,x+6,y+22*c);//21 bar(x-3*c,y+9*c,x-9*c,y+10*c);//18
bar(x+7*c,y+17*c,x-1*c,y+18*c);//17 bar(x+6*c,y+22*c,x+5,y+23*c);//22 bar(x-4*c,y+11*c,x-5*c,y+12*c);//19
bar(x+7*c,y+18*c,x,y+19*c);//18 bar(x+5*c,y+23*c,x+3,y+24*c);//23
bar(x+6*c,y+19*c,x+3*c,y+20*c);//19 bar(x+3*c,y+24*c,x+2,y+25*c);//24

//Manos //Oberol setfillstyle(1,YELLOW);


setfillstyle(1,YELLOW); setfillstyle(1,BLUE); bar(x+3*c,y+5*c,x+1*c,y+9*c);//20
bar(x+8*c,y+14*c,x+6*c,y+15*c);//14 bar(x+2*c,y+11*c,x-2*c,y+12*c);//11 bar(x,y+4*c,x-2*c,y+6*c);//21
bar(x+11*c,y+15*c,x+6*c,y+17*c);//15 bar(x+3*c,y+12*c,x+1,y+13*c);//12 bar(x-3*c,y+4*c,x-7*c,y+5*c);//22
bar(x+11*c,y+17*c,x+7*c,y+19*c);//17 bar(x-2*c,y+12*c,x-3*c,y+15*c);//12-13-14 bar(x-4*c,y+5*c,x-9*c,y+6*c);//23
bar(x+4*c,y+13*c,x+2,y+14*c);//13 bar(x-1*c,y+6*c,x-11*c,y+7*c);//24
bar(x+6*c,y+14*c,x+3*c,y+15*c);//14 bar(x-1*c,y+7*c,x-4*c,y+8*c);//25
//Pies bar(x-5*c,y+7*c,x-11*c,y+8*c);//26
bar(x-2*c,y+15*c,x-4*c,y+16*c);//15
setfillstyle(1,BROWN); bar(x+1*c,y+8*c,x-2*c,y+9*c);//27
bar(x-1*c,y+16*c,x-4*c,y+18*c);//16
bar(x-3*c,y+22*c,x-8*c,y+27*c);//22 bar(x+2*c,y+9*c,x-3*c,y+10*c);//28
bar(x,y+18*c,x-4*c,y+19*c);//18
bar(x-5*c,y+27*c,x-8*c,y+28*c);//22 bar(x+1*c,y+10*c,x-8*c,y+11*c);//29
bar(x+3*c,y+19*c,x-4*c,y+20*c);//19
bar(x-6*c,y+28*c,x-8*c,y+29*c);//22 bar(x+1*c,y+11*c,x-4*c,y+12*c);//30
bar(x+7*c,y+19*c,x+6*c,y+20*c);//19
bar(x+7*c,y+20*c,x-4*c,y+21*c);//20
bar(x+6*c,y+21*c,x-4*c,y+22*c);//21
bar(x+8*c,y+26*c,x+3*c,y+30*c);//26 setfillstyle(1,RED);
bar(x+9*c,y+22*c,x+6*c,y+23*c);//22 bar(x+2*c,y+11*c,x+1*c,y+12*c);//31
bar(x+10*c,y+28*c,x+8*c,y+30*c);//28 bar(x+9*c,y+23*c,x+5*c,y+24*c);//23
bar(x+11*c,y+29*c,x+10*c,y+30*c);//29 bar(x+1*c,y+12*c,x,y+16*c);//32
bar(x+8*c,y+24*c,x+3*c,y+26*c);//24 bar(x-4*c,y+12*c,x-5*c,y+16*c);//33
} bar(x+5*c,y+22*c,x-3*c,y+23*c);//22
void juegos::sMarioParadoArr1(int x, int y,int c) bar(x+2*c,y+16*c,x,y+18*c);//34
bar(x+3*c,y+23*c,x-3*c,y+24*c);//23 bar(x-4*c,y+16*c,x-6*c,y+18*c);//35
{ //cabeza bar(x+2*c,y+24*c,x-3*c,y+25*c);//24
//Gorrito bar(x+2*c,y+18*c,x-6*c,y+24*c);//36
bar(x,y+25*c,x+-3*c,y+26*c);//25 bar(x+3*c,y+22*c,x+2*c,y+24*c);//37
setcolor(BLACK); //Playera
setfillstyle(1,BLUE); bar(x-6*c,y+22*c,x-7*c,y+24*c);//38
setfillstyle(1,LIGHTGRAY); bar(x+4*c,y+23*c,x+3*c,y+24*c);//39
bar(x,y,x+5*c,y+1*c);//1 bar(x+1*c,y+12*c,x-2*c,y+13*c);//12
bar(x- bar(x-7*c,y+23*c,x-8*c,y+24*c);//40
bar(x+2*c,y+13*c,x-2*c,y+14*c);//13 bar(x+5*c,y+24*c,x-1*c,y+25*c);//41
2*c,y+1*c,x+4*c,y+2*c);//2 bar(x+3*c,y+14*c,x-2*c,y+15*c);//14
bar(x- bar(x-3*c,y+24*c,x-9*c,y+25*c);//42
bar(x+6*c,y+15*c,x-2*c,y+16*c);//15 bar(x+5*c,y+25*c,x,y+27*c);//43
3*c,y+2*c,x+3*c,y+3*c);//3 bar(x+6*c,y+16*c,x-1*c,y+17*c);//16
bar(x- bar(x-4*c,y+25*c,x-9*c,y+27*c);//44
bar(x+7*c,y+17*c,x-1*c,y+18*c);//17 setfillstyle(1,BROWN);
3*c,y+3*c,x+9*c,y+4*c);//4 bar(x+7*c,y+18*c,x,y+19*c);//18
setfillstyle(1,BLACK); bar(x+2*c,y+12*c,x+1*c,y+16*c);//45
bar(x+6*c,y+19*c,x+3*c,y+20*c);//19 bar(x-5*c,y+12*c,x-6*c,y+16*c);//46
bar(x+3*c,y+13*c,x+2*c,y+19*c);//47
bar(x+4*c,y+1*c,x+5*c,y+2*c);//5 //Manos bar(x-6*c,y+13*c,x-7*c,y+19*c);//48
setfillstyle(1,YELLOW); bar(x+4*c,y+14*c,x+3*c,y+19*c);//47
bar(x+8*c,y+14*c,x+6*c,y+15*c);//14 bar(x-7*c,y+14*c,x-8*c,y+19*c);//48
bar(x+3*c,y+2*c,x+5*c,y+3*c);//6 bar(x+11*c,y+15*c,x+6*c,y+17*c);//15 bar(x+5*c,y+15*c,x+4*c,y+19*c);//49
bar(x+11*c,y+17*c,x+7*c,y+19*c);//17 bar(x-8*c,y+15*c,x-9*c,y+19*c);//50
//Barba y cabello
setfillstyle(1,BROWN); bar(x+6*c,y+17*c,x+5*c,y+19*c);//49
bar(x-4*c,y+5*c,x-3*c,y+7*c);//7 //Pies bar(x-9*c,y+17*c,x-10*c,y+19*c);//50
bar(x-5*c,y+7*c,x-3*c,y+10*c);//8 setfillstyle(1,LIGHTGRAY); bar(x,y+12*c,x-4*c,y+18*c);//51
bar(x-3*c,y+9*c,x-2*c,y+11*c);//9 bar(x-3*c,y+22*c,x-8*c,y+27*c);//22
bar(x-2*c,y+10*c,x-1*c,y+11*c);//10 bar(x-5*c,y+27*c,x-8*c,y+28*c);//22 setfillstyle(1,YELLOW);
bar(x-6*c,y+28*c,x-8*c,y+29*c);//22 bar(x+6*c,y+19*c,x+2*c,y+21*c);//52
bar(x-3*c,y+4*c,x,y+5*c);//11 bar(x-6*c,y+19*c,x-10*c,y+21*c);//53
bar(x+2*c,y+4*c,x+3*c,y+5*c);//12 bar(x+5*c,y+21*c,x+2*c,y+22*c);//54
bar(x+8*c,y+26*c,x+3*c,y+30*c);//26 bar(x-6*c,y+21*c,x-9*c,y+22*c);//55
bar(x-1*c,y+5*c,x,y+6*c);//13 bar(x+10*c,y+28*c,x+8*c,y+30*c);//28
bar(x+2*c,y+5*c,x+4*c,y+6*c);//14 bar(x+5*c,y+22*c,x+3*c,y+23*c);//56
bar(x+11*c,y+29*c,x+10*c,y+30*c);//29 bar(x-7*c,y+22*c,x-9*c,y+23*c);//57
bar(x-1*c,y+6*c,x+1*c,y+8*c);//15 } setfillstyle(1,BROWN);
bar(x+4*c,y+27*c,x,y+29*c);//58 setfillstyle(1,YELLOW); bar(x+7*c,y+19*c,x+9*c,y+23*c);//42
bar(x-4*c,y+27*c,x-8*c,y+29*c);//59 bar(x+6*c,y+19*c,x+2*c,y+21*c);//52 bar(x+9*c,y+20*c,x+10*c,y+22*c);//42
bar(x+6*c,y+29*c,x,y+31*c);//60 bar(x-6*c,y+19*c,x-10*c,y+21*c);//53
bar(x-4*c,y+29*c,x-10*c,y+31*c);//61 bar(x+5*c,y+21*c,x+2*c,y+22*c);//54
setfillstyle(1,BROWN);
setfillstyle(1,YELLOW); bar(x-6*c,y+21*c,x-9*c,y+22*c);//55
bar(x-3*c,y+12*c,x-2*c,y+13*c);//45
bar(x+1*c,y+19*c,x,y+20*c);//62 bar(x+5*c,y+22*c,x+3*c,y+23*c);//56
bar(x-4*c,y+13*c,x-3*c,y+18*c);//46
bar(x-4*c,y+19*c,x-5*c,y+20*c);//63 bar(x-7*c,y+22*c,x-9*c,y+23*c);//57
bar(x-2*c,y+13*c,x-1*c,y+19*c);//47
} setfillstyle(1,LIGHTGRAY);
bar(x-1*c,y+12*c,x+1*c,y+20*c);//48
bar(x+4*c,y+27*c,x,y+29*c);//58
bar(x+1*c,y+13*c,x+2*c,y+20*c);//47
void juegos::sMarioParadoDerA1(int x, int y,int c) bar(x-4*c,y+27*c,x-8*c,y+29*c);//59
bar(x,y+20*c,x+2*c,y+21*c);//48
{ //cabeza bar(x+6*c,y+29*c,x,y+31*c);//60
bar(x+2*c,y+17*c,x+3*c,y+18*c);//49
setcolor(BLACK); bar(x-4*c,y+29*c,x-10*c,y+31*c);//61
bar(x+3*c,y+12*c,x+5*c,y+13*c);//50
setfillstyle(1,BLUE); setfillstyle(1,YELLOW);
bar(x+4*c,y+13*c,x+6*c,y+15*c);//49
bar(x,y,x-6*c,y+1*c);//1 bar(x+1*c,y+19*c,x,y+20*c);//62
bar(x+5*c,y+15*c,x+7*c,y+16*c);//50
bar(x+2*c,y+1*c,x-5*c,y+2*c);//2 bar(x-4*c,y+19*c,x-5*c,y+20*c);//63
bar(x+6*c,y+15*c,x+7*c,y+18*c);//51
bar(x+3*c,y+2*c,x-4*c,y+3*c);//3 }
bar(x+3*c,y+3*c,x-9*c,y+4*c);//4
setfillstyle(1,BLACK); void juegos::sMarioParadoCam(int x, int y,int c) setfillstyle(1,YELLOW);
bar(x-5*c,y+1*c,x-6*c,y+2*c);//5 { bar(x+2*c,y+18*c,x+3*c,y+21*c);//52
bar(x-4*c,y+2*c,x-6*c,y+3*c);//6 //cabeza bar(x+3*c,y+17*c,x+6*c,y+21*c);//53
setcolor(BLACK); bar(x+6*c,y+18*c,x+7*c,y+20*c);//54
setfillstyle(1,RED);
setfillstyle(1,BROWN); bar(x,y,x+5*c,y+1*c);//1 setfillstyle(1,BROWN);
bar(x+4*c,y+5*c,x+3*c,y+7*c);//7 bar(x-2*c,y+1*c,x+4*c,y+2*c);//2 bar(x,y+24*c,x+1*c,y+25*c);//58
bar(x+5*c,y+7*c,x+3*c,y+10*c);//8 bar(x-3*c,y+2*c,x+3*c,y+3*c);//3 bar(x+1*c,y+23*c,x+2*c,y+26*c);//59
bar(x+3*c,y+9*c,x+2*c,y+11*c);//9 bar(x-3*c,y+3*c,x+9*c,y+4*c);//4 bar(x+2*c,y+21*c,x+5*c,y+27*c);//60
bar(x+2*c,y+10*c,x+1*c,y+11*c);//10 setfillstyle(1,BLACK); bar(x+5*c,y+22*c,x+6*c,y+27*c);//61
bar(x+4*c,y+1*c,x+5*c,y+2*c);//5 bar(x+6*c,y+23*c,x+7*c,y+28*c);//61
bar(x+3*c,y+4*c,x,y+5*c);//11 bar(x+3*c,y+2*c,x+5*c,y+3*c);//6 bar(x+7*c,y+23*c,x+8*c,y+25*c);//61
bar(x-2*c,y+4*c,x-3*c,y+5*c);//12 bar(x+7*c,y+26*c,x+8*c,y+28*c);//61
bar(x+1*c,y+5*c,x,y+6*c);//13 setfillstyle(1,BROWN); bar(x+8*c,y+23*c,x+9*c,y+24*c);//61
bar(x-2*c,y+5*c,x-4*c,y+6*c);//14 bar(x-3*c,y+4*c,x,y+5*c);//7
bar(x+1*c,y+6*c,x-1*c,y+8*c);//15 bar(x+2*c,y+4*c,x+3*c,y+5*c);//8
bar(x-4*c,y+5*c,x-3*c,y+6*c);//9 bar(x-3*c,y+29*c,x-1*c,y+31*c);//61
bar(x-4*c,y+7*c,x-5*c,y+8*c);//16
bar(x-1*c,y+5*c,x,y+6*c);//10 bar(x-1*c,y+27*c,x,y+31*c);//61
bar(x-2*c,y+8*c,x-9*c,y+9*c);//17
bar(x+2*c,y+5*c,x+4*c,y+6*c);//11 bar(x,y+28*c,x+5*c,y+32*c);//61
bar(x-3*c,y+9*c,x-9*c,y+10*c);//18
bar(x-4*c,y+6*c,x-3*c,y+7*c);//12 bar(x+5*c,y+30*c,x+7*c,y+32*c);//61
bar(x-4*c,y+11*c,x-5*c,y+12*c);//19
bar(x-1*c,y+6*c,x+1*c,y+7*c);//13
bar(x-5*c,y+7*c,x-3*c,y+8*c);//14 }
bar(x-1*c,y+7*c,x+1*c,y+8*c);//15
bar(x+4*c,y+7*c,x+5*c,y+8*c);//16 void juegos::sMarioParadoCam1(int x, int y,int c)
setfillstyle(1,YELLOW);
bar(x-5*c,y+8*c,x-3*c,y+9*c);//17 {
bar(x+3*c,y+5*c,x+1*c,y+9*c);//20
bar(x+2*c,y+8*c,x+9*c,y+9*c);//18 //cabeza
bar(x,y+4*c,x-2*c,y+6*c);//21
bar(x-4*c,y+9*c,x-2*c,y+10*c);//19 setcolor(BLACK);
bar(x-3*c,y+4*c,x-7*c,y+5*c);//22
bar(x+3*c,y+9*c,x+9*c,y+10*c);//19 setfillstyle(1,BLUE);
bar(x-4*c,y+5*c,x-9*c,y+6*c);//23
bar(x-3*c,y+10*c,x-1*c,y+11*c);//19 bar(x,y,x+5*c,y+1*c);//1
bar(x-1*c,y+6*c,x-11*c,y+7*c);//24 bar(x-2*c,y+1*c,x+4*c,y+2*c);//2
bar(x-1*c,y+7*c,x-4*c,y+8*c);//25 bar(x-3*c,y+2*c,x+3*c,y+3*c);//3
bar(x-5*c,y+7*c,x-11*c,y+8*c);//26 bar(x-3*c,y+3*c,x+9*c,y+4*c);//4
bar(x+1*c,y+8*c,x-2*c,y+9*c);//27 setfillstyle(1,YELLOW); setfillstyle(1,BLACK);
bar(x+2*c,y+9*c,x-3*c,y+10*c);//28 bar(x,y+4*c,x+2*c,y+6*c);//20 bar(x+4*c,y+1*c,x+5*c,y+2*c);//5
bar(x+1*c,y+10*c,x-8*c,y+11*c);//29 bar(x+3*c,y+4*c,x+7*c,y+5*c);//21 bar(x+3*c,y+2*c,x+5*c,y+3*c);//6
bar(x+1*c,y+11*c,x-4*c,y+12*c);//30 bar(x-3*c,y+5*c,x-1*c,y+9*c);//23
bar(x+4*c,y+5*c,x+9*c,y+6*c);//24 setfillstyle(1,BROWN);
setfillstyle(1,BLUE); bar(x+4*c,y+5*c,x+9*c,y+7*c);//25 bar(x-3*c,y+4*c,x,y+5*c);//7
bar(x+2*c,y+11*c,x+1*c,y+12*c);//31 bar(x+9*c,y+6*c,x+11*c,y+8*c);//26 bar(x+2*c,y+4*c,x+3*c,y+5*c);//8
bar(x+1*c,y+12*c,x,y+16*c);//32 bar(x+5*c,y+7*c,x+9*c,y+8*c);//27 bar(x-4*c,y+5*c,x-3*c,y+6*c);//9
bar(x-4*c,y+12*c,x-5*c,y+16*c);//33 bar(x+1*c,y+6*c,x+4*c,y+8*c);//28 bar(x-1*c,y+5*c,x,y+6*c);//10
bar(x+2*c,y+16*c,x,y+18*c);//34 bar(x-1*c,y+8*c,x+2*c,y+11*c);//29 bar(x+2*c,y+5*c,x+4*c,y+6*c);//11
bar(x-4*c,y+16*c,x-6*c,y+18*c);//35 bar(x-2*c,y+9*c,x-1*c,y+10*c);//30 bar(x-4*c,y+6*c,x-3*c,y+7*c);//12
bar(x+2*c,y+18*c,x-6*c,y+24*c);//36 bar(x+2*c,y+9*c,x+3*c,y+12*c);//30 bar(x-1*c,y+6*c,x+1*c,y+7*c);//13
bar(x+3*c,y+22*c,x+2*c,y+24*c);//37 bar(x+3*c,y+10*c,x+4*c,y+12*c);//30 bar(x-5*c,y+7*c,x-3*c,y+8*c);//14
bar(x-6*c,y+22*c,x-7*c,y+24*c);//38 bar(x+4*c,y+10*c,x+8*c,y+11*c);//30 bar(x-1*c,y+7*c,x+1*c,y+8*c);//15
bar(x+4*c,y+23*c,x+3*c,y+24*c);//39 bar(x+4*c,y+7*c,x+5*c,y+8*c);//16
bar(x-7*c,y+23*c,x-8*c,y+24*c);//40 setfillstyle(1,RED); bar(x-5*c,y+8*c,x-3*c,y+9*c);//17
bar(x+5*c,y+24*c,x-1*c,y+25*c);//41 bar(x-2*c,y+11*c,x+2*c,y+12*c);//31 bar(x+2*c,y+8*c,x+9*c,y+9*c);//18
bar(x-3*c,y+24*c,x-9*c,y+25*c);//42 bar(x-2*c,y+12*c,x-1*c,y+13*c);//32 bar(x-4*c,y+9*c,x-2*c,y+10*c);//19
bar(x+5*c,y+25*c,x,y+27*c);//43 bar(x+1*c,y+12*c,x+3*c,y+13*c);//33 bar(x+3*c,y+9*c,x+9*c,y+10*c);//19
bar(x-4*c,y+25*c,x-9*c,y+27*c);//44 bar(x-3*c,y+13*c,x-2*c,y+18*c);//34 bar(x-3*c,y+10*c,x-1*c,y+11*c);//19
setfillstyle(1,LIGHTGRAY); bar(x+2*c,y+13*c,x+4*c,y+17*c);//35
bar(x+2*c,y+12*c,x+1*c,y+16*c);//45 bar(x+4*c,y+15*c,x+5*c,y+17*c);//36
bar(x-5*c,y+12*c,x-6*c,y+16*c);//46 bar(x+5*c,y+16*c,x+6*c,y+17*c);//37
bar(x-4*c,y+18*c,x-2*c,y+23*c);//38 setfillstyle(1,YELLOW);
bar(x+3*c,y+13*c,x+2*c,y+19*c);//47
bar(x-2*c,y+19*c,x-1*c,y+26*c);//39 bar(x,y+4*c,x+2*c,y+6*c);//20
bar(x-6*c,y+13*c,x-7*c,y+19*c);//48
bar(x-1*c,y+20*c,x,y+27*c);//40 bar(x+3*c,y+4*c,x+7*c,y+5*c);//21
bar(x+4*c,y+14*c,x+3*c,y+19*c);//47
bar(x,y+21*c,x+2*c,y+23*c);//41 bar(x-3*c,y+5*c,x-1*c,y+9*c);//23
bar(x-7*c,y+14*c,x-8*c,y+19*c);//48
bar(x-3*c,y+23*c,x-2*c,y+24*c);//42 bar(x+4*c,y+5*c,x+9*c,y+6*c);//24
bar(x+5*c,y+15*c,x+4*c,y+19*c);//49
bar(x,y+23*c,x+1*c,y+24*c);//43 bar(x+4*c,y+5*c,x+9*c,y+7*c);//25
bar(x-8*c,y+15*c,x-9*c,y+19*c);//50
bar(x,y+25*c,x+1*c,y+28*c);//44 bar(x+9*c,y+6*c,x+11*c,y+8*c);//26
bar(x+6*c,y+17*c,x+5*c,y+19*c);//49
bar(x+1*c,y+26*c,x+2*c,y+28*c);//42 bar(x+5*c,y+7*c,x+9*c,y+8*c);//27
bar(x-9*c,y+17*c,x-10*c,y+19*c);//50
bar(x+2*c,y+27*c,x+5*c,y+28*c);//42 bar(x+1*c,y+6*c,x+4*c,y+8*c);//28
bar(x,y+12*c,x-4*c,y+18*c);//51
bar(x+5*c,y+21*c,x+6*c,y+22*c);//42 bar(x-1*c,y+8*c,x+2*c,y+11*c);//29
bar(x+6*c,y+20*c,x+7*c,y+23*c);//42 bar(x-2*c,y+9*c,x-1*c,y+10*c);//30
bar(x+2*c,y+9*c,x+3*c,y+12*c);//30 //cabeza
bar(x+3*c,y+10*c,x+4*c,y+12*c);//30 setcolor(BLACK);
bar(x+3*c,y+4*c,x,y+5*c);//11
bar(x+4*c,y+10*c,x+8*c,y+11*c);//30 setfillstyle(1,BLUE);
bar(x-2*c,y+4*c,x-3*c,y+5*c);//12 bar(x,y,x-6*c,y+1*c);//1
bar(x+1*c,y+5*c,x,y+6*c);//13
setfillstyle(1,BLUE); bar(x-5*c,y+1*c,x+2*c,y+2*c);//2
bar(x-2*c,y+5*c,x-4*c,y+6*c);//14
bar(x-2*c,y+11*c,x+2*c,y+12*c);//31 bar(x-4*c,y+2*c,x+3*c,y+3*c);//3
bar(x+1*c,y+6*c,x-1*c,y+8*c);//15
bar(x-2*c,y+12*c,x-1*c,y+13*c);//32 bar(x-9*c,y+3*c,x+3*c,y+4*c);//4
bar(x-4*c,y+7*c,x-5*c,y+8*c);//16
bar(x+1*c,y+12*c,x+3*c,y+13*c);//33 setfillstyle(1,BLACK);
bar(x-2*c,y+8*c,x-9*c,y+9*c);//17
bar(x-3*c,y+13*c,x-2*c,y+18*c);//34 bar(x-6*c,y+1*c,x-5*c,y+2*c);//5
bar(x-3*c,y+9*c,x-9*c,y+10*c);//18
bar(x+2*c,y+13*c,x+4*c,y+17*c);//35 bar(x-6*c,y+2*c,x-4*c,y+3*c);//6
//bar(x+4*c,y+11*c,x+5*c,y+12*c);//1
bar(x+4*c,y+15*c,x+5*c,y+17*c);//36
9
bar(x+5*c,y+16*c,x+6*c,y+17*c);//37
setfillstyle(1,BROWN);
bar(x-4*c,y+18*c,x-2*c,y+23*c);//38
bar(x+3*c,y+5*c,x+4*c,y+7*c);//7
bar(x-2*c,y+19*c,x-1*c,y+26*c);//39 setfillstyle(1,YELLOW); bar(x+3*c,y+7*c,x+5*c,y+10*c);//8
bar(x-1*c,y+20*c,x,y+27*c);//40 bar(x+3*c,y+5*c,x+1*c,y+9*c);//20 bar(x+2*c,y+9*c,x+3*c,y+11*c);//9
bar(x,y+21*c,x+2*c,y+23*c);//41 bar(x,y+4*c,x-2*c,y+6*c);//21 bar(x+1*c,y+10*c,x+2*c,y+11*c);//10
bar(x-3*c,y+23*c,x-2*c,y+24*c);//42 bar(x-3*c,y+4*c,x-7*c,y+5*c);//22
bar(x,y+23*c,x+1*c,y+24*c);//43 bar(x-4*c,y+5*c,x-9*c,y+6*c);//23
bar(x,y+25*c,x+1*c,y+28*c);//44 bar(x-1*c,y+6*c,x-11*c,y+7*c);//24 bar(x+3*c,y+4*c,x,y+5*c);//11
bar(x+1*c,y+26*c,x+2*c,y+28*c);//42 bar(x-1*c,y+7*c,x-4*c,y+8*c);//25 bar(x-2*c,y+4*c,x-3*c,y+5*c);//12
bar(x+2*c,y+27*c,x+5*c,y+28*c);//42 bar(x-5*c,y+7*c,x-11*c,y+8*c);//26 bar(x+1*c,y+5*c,x,y+6*c);//13
bar(x+5*c,y+21*c,x+6*c,y+22*c);//42 bar(x+1*c,y+8*c,x-2*c,y+9*c);//27 bar(x-2*c,y+5*c,x-4*c,y+6*c);//14
bar(x+6*c,y+20*c,x+7*c,y+23*c);//42 bar(x+2*c,y+9*c,x-3*c,y+10*c);//28 bar(x+1*c,y+6*c,x-1*c,y+8*c);//15
bar(x+7*c,y+19*c,x+9*c,y+23*c);//42 bar(x+1*c,y+10*c,x-8*c,y+11*c);//29 bar(x-4*c,y+7*c,x-5*c,y+8*c);//16
bar(x+9*c,y+20*c,x+10*c,y+22*c);//42 bar(x-2*c,y+11*c,x-4*c,y+12*c);//30 bar(x-2*c,y+8*c,x-9*c,y+9*c);//17
bar(x-3*c,y+9*c,x-9*c,y+10*c);//18
//bar(x+4*c,y+11*c,x+5*c,y+12*c);//1
setfillstyle(1,LIGHTGRAY); setfillstyle(1,RED); 9
bar(x-3*c,y+12*c,x-2*c,y+13*c);//45 bar(x-2*c,y+11*c,x+2*c,y+12*c);//31
bar(x-4*c,y+13*c,x-3*c,y+18*c);//46 bar(x+2*c,y+12*c,x+1*c,y+13*c);//32
bar(x-2*c,y+13*c,x-1*c,y+19*c);//47 bar(x-1*c,y+12*c,x-3*c,y+13*c);//33 setfillstyle(1,YELLOW);
bar(x-1*c,y+12*c,x+1*c,y+20*c);//48 bar(x-2*c,y+13*c,x-4*c,y+17*c);//34 bar(x+3*c,y+5*c,x+1*c,y+9*c);//20
bar(x+1*c,y+13*c,x+2*c,y+20*c);//47 bar(x-4*c,y+15*c,x-5*c,y+17*c);//35 bar(x,y+4*c,x-2*c,y+6*c);//21
bar(x,y+20*c,x+2*c,y+21*c);//48 bar(x-5*c,y+16*c,x-6*c,y+17*c);//36 bar(x-3*c,y+4*c,x-7*c,y+5*c);//22
bar(x+2*c,y+17*c,x+3*c,y+18*c);//49 bar(x+4*c,y+18*c,x+3*c,y+23*c);//37 bar(x-4*c,y+5*c,x-9*c,y+6*c);//23
bar(x+3*c,y+12*c,x+5*c,y+13*c);//50 bar(x+3*c,y+13*c,x+2*c,y+24*c);//38 bar(x-1*c,y+6*c,x-11*c,y+7*c);//24
bar(x+4*c,y+13*c,x+6*c,y+15*c);//49 bar(x+2*c,y+19*c,x+1*c,y+26*c);//39 bar(x-1*c,y+7*c,x-4*c,y+8*c);//25
bar(x+5*c,y+15*c,x+7*c,y+16*c);//50 bar(x+1*c,y+20*c,x,y+27*c);//40 bar(x-5*c,y+7*c,x-11*c,y+8*c);//26
bar(x+6*c,y+15*c,x+7*c,y+18*c);//51 bar(x,y+21*c,x-1*c,y+24*c);//41 bar(x+1*c,y+8*c,x-2*c,y+9*c);//27
bar(x+1*c,y+21*c,x-2*c,y+23*c);//42 bar(x+2*c,y+9*c,x-3*c,y+10*c);//28
bar(x,y+25*c,x-1*c,y+28*c);//43 bar(x+1*c,y+10*c,x-8*c,y+11*c);//29
setfillstyle(1,YELLOW);
bar(x-1*c,y+26*c,x-2*c,y+28*c);//44 bar(x-2*c,y+11*c,x-4*c,y+12*c);//30
bar(x+2*c,y+18*c,x+3*c,y+21*c);//52
bar(x-2*c,y+27*c,x-5*c,y+28*c);//43
bar(x+3*c,y+17*c,x+6*c,y+21*c);//53
bar(x-5*c,y+21*c,x-6*c,y+22*c);//44
bar(x+6*c,y+18*c,x+7*c,y+20*c);//54 setfillstyle(1,BLUE);
bar(x-6*c,y+20*c,x-7*c,y+23*c);//43
bar(x-2*c,y+11*c,x+2*c,y+12*c);//31
bar(x-7*c,y+19*c,x-9*c,y+23*c);//44
setfillstyle(1,BLUE); bar(x+2*c,y+12*c,x+1*c,y+13*c);//32
bar(x-9*c,y+20*c,x-10*c,y+22*c);//44
bar(x,y+24*c,x+1*c,y+25*c);//58 bar(x-1*c,y+12*c,x-3*c,y+13*c);//33
bar(x+1*c,y+23*c,x+2*c,y+26*c);//59 bar(x-2*c,y+13*c,x-4*c,y+17*c);//34
bar(x+2*c,y+21*c,x+5*c,y+27*c);//60 setfillstyle(1,BROWN); bar(x-4*c,y+15*c,x-5*c,y+17*c);//35
bar(x+5*c,y+22*c,x+6*c,y+27*c);//61 bar(x+3*c,y+12*c,x+2*c,y+13*c);//45 bar(x-5*c,y+16*c,x-6*c,y+17*c);//36
bar(x+6*c,y+23*c,x+7*c,y+28*c);//61 bar(x+4*c,y+13*c,x+3*c,y+18*c);//46 bar(x+4*c,y+18*c,x+3*c,y+23*c);//37
bar(x+7*c,y+23*c,x+8*c,y+25*c);//61 bar(x+1*c,y+12*c,x-1*c,y+13*c);//47 bar(x+3*c,y+13*c,x+2*c,y+24*c);//38
bar(x+7*c,y+26*c,x+8*c,y+28*c);//61 bar(x-2*c,y+13*c,x+2*c,y+19*c);//48 bar(x+2*c,y+19*c,x+1*c,y+26*c);//39
bar(x+8*c,y+23*c,x+9*c,y+24*c);//61 bar(x+1*c,y+19*c,x-2*c,y+20*c);//47 bar(x+1*c,y+20*c,x,y+27*c);//40
bar(x,y+20*c,x-2*c,y+21*c);//48 bar(x,y+21*c,x-1*c,y+24*c);//41
bar(x-2*c,y+17*c,x-3*c,y+18*c);//49 bar(x+1*c,y+21*c,x-2*c,y+23*c);//42
bar(x-3*c,y+29*c,x-1*c,y+31*c);//61
bar(x-3*c,y+12*c,x-5*c,y+13*c);//50 bar(x,y+25*c,x-1*c,y+28*c);//43
bar(x-1*c,y+27*c,x,y+31*c);//61
bar(x-4*c,y+13*c,x-6*c,y+15*c);//49 bar(x-1*c,y+26*c,x-2*c,y+28*c);//44
bar(x,y+28*c,x+5*c,y+32*c);//61
bar(x-5*c,y+15*c,x-7*c,y+16*c);//50 bar(x-2*c,y+27*c,x-5*c,y+28*c);//43
bar(x+5*c,y+30*c,x+7*c,y+32*c);//61
bar(x-6*c,y+16*c,x-7*c,y+18*c);//51 bar(x-5*c,y+21*c,x-6*c,y+22*c);//44
bar(x,y+24*c,x-1*c,y+25*c);//49 bar(x-6*c,y+20*c,x-7*c,y+23*c);//43
}
bar(x-1*c,y+23*c,x-2*c,y+26*c);//50 bar(x-7*c,y+19*c,x-9*c,y+23*c);//44
bar(x-2*c,y+21*c,x-5*c,y+27*c);//49 bar(x-9*c,y+20*c,x-10*c,y+22*c);//44
bar(x-5*c,y+22*c,x-6*c,y+27*c);//50
void juegos::sMarioParadoCamA(int x, int y,int c)
bar(x-6*c,y+23*c,x-7*c,y+28*c);//50
{ setfillstyle(1,LIGHTGRAY);
bar(x-7*c,y+23*c,x-8*c,y+25*c);//50
//cabeza bar(x+3*c,y+12*c,x+2*c,y+13*c);//45
bar(x-7*c,y+26*c,x-8*c,y+28*c);//50
setcolor(BLACK); bar(x+4*c,y+13*c,x+3*c,y+18*c);//46
bar(x-8*c,y+23*c,x-9*c,y+24*c);//50
setfillstyle(1,RED); bar(x+1*c,y+12*c,x-1*c,y+13*c);//47
bar(x+3*c,y+29*c,x,y+31*c);//50
bar(x,y,x-6*c,y+1*c);//1 bar(x-2*c,y+13*c,x+2*c,y+19*c);//48
bar(x+1*c,y+27*c,x,y+29*c);//50
bar(x-5*c,y+1*c,x+2*c,y+2*c);//2 bar(x+1*c,y+19*c,x-2*c,y+20*c);//47
bar(x,y+28*c,x-5*c,y+32*c);//50
bar(x-4*c,y+2*c,x+3*c,y+3*c);//3 bar(x,y+20*c,x-2*c,y+21*c);//48
bar(x-5*c,y+30*c,x-7*c,y+32*c);//50
bar(x-9*c,y+3*c,x+3*c,y+4*c);//4 bar(x-2*c,y+17*c,x-3*c,y+18*c);//49
setfillstyle(1,BLACK); bar(x-3*c,y+12*c,x-5*c,y+13*c);//50
bar(x-6*c,y+1*c,x-5*c,y+2*c);//5 setfillstyle(1,YELLOW); bar(x-4*c,y+13*c,x-6*c,y+15*c);//49
bar(x-6*c,y+2*c,x-4*c,y+3*c);//6 bar(x-3*c,y+17*c,x-6*c,y+18*c);//52 bar(x-5*c,y+15*c,x-7*c,y+16*c);//50
bar(x-2*c,y+18*c,x-7*c,y+20*c);//53 bar(x-6*c,y+16*c,x-7*c,y+18*c);//51
bar(x-2*c,y+20*c,x-6*c,y+21*c);//54 bar(x,y+24*c,x-1*c,y+25*c);//49
setfillstyle(1,BROWN);
bar(x-1*c,y+23*c,x-2*c,y+26*c);//50
bar(x+3*c,y+5*c,x+4*c,y+7*c);//7
} bar(x-2*c,y+21*c,x-5*c,y+27*c);//49
bar(x+3*c,y+7*c,x+5*c,y+10*c);//8
void juegos::sMarioParadoCamA1(int x, int y,int bar(x-5*c,y+22*c,x-6*c,y+27*c);//50
bar(x+2*c,y+9*c,x+3*c,y+11*c);//9
c) bar(x-6*c,y+23*c,x-7*c,y+28*c);//50
bar(x+1*c,y+10*c,x+2*c,y+11*c);//10
{ bar(x-7*c,y+23*c,x-8*c,y+25*c);//50
bar(x-7*c,y+26*c,x-8*c,y+28*c);//50 bar(x-5*c,y+18*c,x-2,y+19*c); bar(x+8*c,y,x+12*c,y+4*c);//mano izq
bar(x-8*c,y+23*c,x-9*c,y+24*c);//50 bar(x-5*c,y+19*c,x-2,y+20*c); }
bar(x+3*c,y+29*c,x,y+31*c);//50 bar(x+8*c,y+17*c,x+12*c,y+18*c);//mano der
bar(x+1*c,y+27*c,x,y+29*c);//50 bar(x+9*c,y+18*c,x+12*c,y+19*c); void juegos::sMario2Ab(int x,int y1,int c)
bar(x,y+28*c,x-5*c,y+32*c);//50 bar(x+9*c,y+19*c,x+11*c,y+20*c); {
bar(x-5*c,y+30*c,x-7*c,y+32*c);//50 } // cabeza
y1=530;
void juegos::sMario1(int x, int y,int c) setcolor(BLACK);
setfillstyle(1,YELLOW); { setfillstyle(1,RED);
bar(x-3*c,y+17*c,x-6*c,y+18*c);//52 // cabeza bar(x,y1,x-6*c,y1+1*c);
bar(x-2*c,y+18*c,x-7*c,y+20*c);//53 setcolor(RED); bar(x+2*c,y1+1*c,x-5*c,y1+2*c);
bar(x-2*c,y+20*c,x-6*c,y+21*c);//54 setfillstyle(1,RED); bar(x+3*c,y1+2*c,x-4*c,y1+3*c);
bar(x,y+1,x+5*c,y+2*c); bar(x+3*c,y1+3*c,x-9*c,y1+4*c);
} bar(x-2*c,y+2*c,x+4*c,y+3*c); setfillstyle(1,BLACK);
bar(x-3*c,y+3*c,x+3*c,y+4*c); bar(x-5*c,y1+1*c,x-6*c,y1+2*c);
void juegos::sMario2(int x,int y,int c) bar(x-3*c,y+4*c,x+9*c,y+5*c); bar(x-4*c,y1+2*c,x-6*c,y1+3*c);
{ y=530; setfillstyle(1,BLACK); setfillstyle(1,BROWN);//pelo
// cabeza bar(x+4*c,y+2*c,x+5*c,y+3*c); bar(x+4*c,y1+5*c,x+3*c,y1+7*c);
setcolor(RED); bar(x+3*c,y+3*c,x+5*c,y+4*c); bar(x+5*c,y1+7*c,x+3*c,y1+10*c);
setfillstyle(1,RED); setfillstyle(1,BROWN); bar(x+3*c,y1+9*c,x+2*c,y1+11*c);
bar(x,y,x+6*c,y+1*c); bar(x-3*c,y+5*c,x-1*c,y+6*c);//pelo bar(x+2*c,y1+10*c,x+1*c,y1+11*c);
bar(x-2*c,y+1*c,x+5*c,y+2*c); bar(x-1*c,y+5*c,x,y+9*c); bar(x+3*c,y1+10*c,x+2*c,y1+11*c);
bar(x-3*c,y+2*c,x+4*c,y+3*c); bar(x,y+7*c,x+1*c,y+9*c); bar(x+3*c,y1+4*c,x,y1+5*c);
bar(x-3*c,y+3*c,x+9*c,y+4*c); bar(x+2*c,y+5*c,x+3*c,y+6*c);//ojo bar(x-2*c,y1+4*c,x-3*c,y1+5*c);
setfillstyle(1,BLACK); bar(x+2*c,y+6*c,x+4*c,y+7*c); bar(x+1*c,y1+5*c,x,y1+6*c);
bar(x+5*c,y+1*c,x+6*c,y+2*c); bar(x-4*c,y+6*c,x-3*c,y+11*c);//pelo bar(x-2*c,y1+5*c,x-4*c,y1+6*c);
bar(x+4*c,y+2*c,x+6*c,y+3*c); bar(x-5*c,y+8*c,x-4*c,y+10*c); bar(x+1*c,y1+6*c,x-1*c,y1+8*c);
setfillstyle(1,BROWN);//pelo
bar(x-3*c,y+10*c,x-2*c,y+11*c); bar(x-4*c,y1+7*c,x-5*c,y1+8*c);
bar(x-4*c,y+5*c,x-3*c,y+7*c); bar(x-2*c,y+11*c,x-1*c,y+12*c); bar(x-2*c,y1+8*c,x-9*c,y1+9*c);
bar(x-5*c,y+7*c,x-3*c,y+10*c); bar(x+4*c,y+8*c,x+5*c,y+9*c);//bigote bar(x-3*c,y1+9*c,x-9*c,y1+10*c);
bar(x-3*c,y+9*c,x-2*c,y+11*c); bar(x+2*c,y+9*c,x+9*c,y+10*c); bar(x-4*c,y1+11*c,x-5*c,y1+12*c);
bar(x-2*c,y+10*c,x-1*c,y+11*c); bar(x+3*c,y+10*c,x+9*c,y+11*c); setfillstyle(1,YELLOW);//cara
bar(x-3*c,y+10*c,x-2*c,y+11*c); setfillstyle(1,YELLOW);//cara bar(x+3*c,y1+5*c,x+1*c,y1+9*c);
bar(x-3*c,y+4*c,x,y+5*c); bar(x-3*c,y+6*c,x-1*c,y+9*c); bar(x,y1+4*c,x-2*c,y1+6*c);
bar(x+2*c,y+4*c,x+3*c,y+5*c); bar(x,y+5*c,x+2*c,y+7*c); bar(x-3*c,y1+4*c,x-7*c,y1+5*c);
bar(x-1*c,y+5*c,x,y+6*c); bar(x+1*c,y+7*c,x+4*c,y+9*c); bar(x-4*c,y1+5*c,x-9*c,y1+6*c);
bar(x+2*c,y+5*c,x+4*c,y+6*c); bar(x+3*c,y+5*c,x+7*c,y+6*c); bar(x-1*c,y1+6*c,x-11*c,y1+7*c);
bar(x-1*c,y+6*c,x+1*c,y+8*c); bar(x+4*c,y+6*c,x+9*c,y+8*c); bar(x-1*c,y1+7*c,x-4*c,y1+8*c);
bar(x+4*c,y+7*c,x+5*c,y+8*c); bar(x+5*c,y+8*c,x+9*c,y+9*c); bar(x-5*c,y1+7*c,x-11*c,y1+8*c);
bar(x+2*c,y+8*c,x+9*c,y+9*c); bar(x+9*c,y+7*c,x+11*c,y+9*c); bar(x+1*c,y1+8*c,x-2*c,y1+9*c);
bar(x+3*c,y+9*c,x+9*c,y+10*c); bar(x-3*c,y+9*c,x+2*c,y+10*c); bar(x+2*c,y1+9*c,x-3*c,y1+10*c);
bar(x+4*c,y+11*c,x+5*c,y+12*c); bar(x-2*c,y+10*c,x+3*c,y+11*c); bar(x+1*c,y1+10*c,x-8*c,y1+11*c);
setfillstyle(1,YELLOW);//cara bar(x-1*c,y+11*c,x+8*c,y+12*c); bar(x+1*c,y1+11*c,x-4*c,y1+12*c);
bar(x-3*c,y+5*c,x-1*c,y+9*c); //cuerpo //cuerpo
bar(x,y+4*c,x+2*c,y+6*c); setfillstyle(1,RED);//peto setfillstyle(1,RED);//peto
bar(x+3*c,y+4*c,x+7*c,y+5*c); bar(x,y+12*c,x+1*c,y+13*c); bar(x+1*c,y1+11*c,x,y1+12*c);
bar(x+4*c,y+5*c,x+9*c,y+6*c); bar(x+6*c,y+12*c,x+7*c,y+13*c); bar(x-7*c,y1+11*c,x-8*c,y1+12*c);
bar(x+1*c,y+6*c,x+11*c,y+7*c); bar(x-3*c,y+17*c,x+8*c,y+22*c); bar(x,y1+12*c,x-1*c,y1+13*c);
bar(x+1*c,y+7*c,x+4*c,y+8*c); bar(x+1*c,y+15*c,x+8*c,y+17*c); bar(x-6*c,y1+12*c,x-7*c,y1+13*c);
bar(x+5*c,y+7*c,x+11*c,y+8*c); bar(x+1*c,y+13*c,x+2*c,y+15*c); bar(x,y1+13*c,x-7*c,y1+21*c);
bar(x-1*c,y+8*c,x+2*c,y+9*c); bar(x+7*c,y+13*c,x+8*c,y+15*c); bar(x+2*c,y1+14*c,x,y1+17*c);
bar(x-2*c,y+9*c,x+3*c,y+10*c); bar(x-1*c,y+16*c,x,y+17*c); bar(x+2*c,y1+18*c,x,y1+20*c);
bar(x-1*c,y+10*c,x+8*c,y+11*c); bar(x-3*c,y+16*c,x-2*c,y+17*c); bar(x+1*c,y1+17*c,x,y1+18*c);
bar(x-1*c,y+11*c,x+4*c,y+12*c); bar(x-3*c,y+22*c,x+9*c,y+24*c); bar(x-7*c,y1+14*c,x-9*c,y1+17*c);
//cuerpo bar(x-2*c,y+24*c,x+9*c,y+26*c); bar(x-7*c,y1+18*c,x-10*c,y1+20*c);
setfillstyle(1,RED);//peto bar(x-3*c,y+26*c,x+2*c,y+28*c); bar(x-7*c,y1+17*c,x-8*c,y1+18*c);
bar(x-1*c,y+11*c,x,y+12*c); bar(x+2*c,y+26*c,x+5*c,y+27*c); setfillstyle(1,BROWN);//pecho
bar(x+7*c,y+11*c,x+8*c,y+12*c); bar(x-2*c,y+16*c,x-1*c,y+17*c); bar(x,y1+11*c,x-7*c,y1+12*c);
bar(x,y+12*c,x+1*c,y+13*c); bar(x,y+16*c,x+1*c,y+18*c); bar(x-1*c,y1+12*c,x-6*c,y1+13*c);
bar(x+6*c,y+12*c,x+7*c,y+13*c); setfillstyle(1,BROWN); bar(x+4*c,y1+11*c,x+1*c,y1+12*c);//brazo
bar(x,y+13*c,x+7*c,y+21*c); bar(x+9*c,y+4*c,x+12*c,y+7*c);//mano izq izq
bar(x-2*c,y+14*c,x,y+17*c); bar(x+8*c,y+5*c,x+9*c,y+6*c); bar(x+5*c,y1+12*c,x,y1+14*c);
bar(x-2*c,y+18*c,x,y+20*c); bar(x+11*c,y+7*c,x+12*c,y+9*c); bar(x+5*c,y1+14*c,x+2*c,y1+17*c);
bar(x-1*c,y+17*c,x,y+18*c); bar(x+9*c,y+9*c,x+11*c,y+10*c); bar(x-8*c,y1+10*c,x-9*c,y1+11*c);//brazo der
bar(x+7*c,y+14*c,x+9*c,y+17*c); bar(x+9*c,y+10*c,x+10*c,y+11*c); bar(x-8*c,y1+11*c,x-11*c,y1+12*c);
bar(x+7*c,y+18*c,x+10*c,y+20*c); bar(x+8*c,y+11*c,x+9*c,y+12*c); bar(x-7*c,y1+12*c,x-12*c,y1+14*c);
bar(x+7*c,y+17*c,x+8*c,y+18*c); bar(x+1*c,y+12*c,x+6*c,y+13*c);//pecho bar(x-9*c,y1+14*c,x-12*c,y1+17*c);
setfillstyle(1,BROWN);//pecho bar(x+2*c,y+13*c,x+7*c,y+15*c); bar(x+4*c,y1+20*c,x,y1+21*c);//pie izq
bar(x,y+11*c,x+7*c,y+12*c); bar(x-8*c,y+13*c,x+1*c,y+16*c);//brazo der bar(x+2*c,y1+19*c,x,y1+20*c);
bar(x+1*c,y+12*c,x+6*c,y+13*c); bar(x-6*c,y+12*c,x,y+13*c); bar(x-7*c,y1+20*c,x-11*c,y1+21*c);//pie der
bar(x-4*c,y+11*c,x-1*c,y+12*c);//brazo izq bar(x-9*c,y+14*c,x-8*c,y+17*c); bar(x-7*c,y1+19*c,x-9*c,y1+20*c);
bar(x-5*c,y+12*c,x,y+14*c); bar(x-2*c,y+16*c,x-1*c,y+17*c); setfillstyle(1,YELLOW);//mano izq
bar(x-5*c,y+14*c,x-2*c,y+17*c); bar(x-8*c,y+16*c,x-4*c,y+17*c); bar(x+5*c,y1+17*c,x+1*c,y1+18*c);
bar(x+8*c,y+10*c,x+9*c,y+11*c);//brazo der bar(x-7*c,y+17*c,x-5*c,y+18*c); bar(x+5*c,y1+18*c,x+2,y1+19*c);
bar(x+8*c,y+11*c,x+11*c,y+12*c); bar(x+9*c,y+22*c,x+12*c,y+26*c);//bota der bar(x+5*c,y1+19*c,x+2,y1+20*c);
bar(x+7*c,y+12*c,x+12*c,y+14*c); bar(x+10*c,y+20*c,x+12*c,y+22*c); bar(x-8*c,y1+17*c,x-12*c,y1+18*c);//mano
bar(x+9*c,y+14*c,x+12*c,y+17*c); bar(x-7*c,y+23*c,x-3*c,y+27*c);//bota izq der
bar(x-4*c,y+20*c,x,y+21*c);//pie izq bar(x-3*c,y+24*c,x-2*c,y+26*c); bar(x-9*c,y1+18*c,x-12*c,y1+19*c);
bar(x-2*c,y+19*c,x,y+20*c); bar(x-7*c,y+27*c,x-5*c,y+29*c); bar(x-9*c,y1+19*c,x-11*c,y1+20*c);
bar(x+7*c,y+20*c,x+11*c,y+21*c);//pie der setfillstyle(1,YELLOW); }
bar(x+7*c,y+19*c,x+9*c,y+20*c); bar(x-10*c,y+17*c,x-7*c,y+20*c);//mano der
setfillstyle(1,YELLOW);//mano izq bar(x-7*c,y+18*c,x-5*c,y+20*c); void juegos::sMario1Ab(int x, int y,int c)
bar(x-5*c,y+17*c,x-1*c,y+18*c); bar(x-9*c,y+20*c,x-7*c,y+21*c); {
// cabeza setcolor(RED); bar(x+3*c,y+3*c,x+5*c,y+4*c);
setcolor(LIGHTGREEN); setfillstyle(1,BLUE); setfillstyle(1,BROWN);
setfillstyle(1,LIGHTGREEN); bar(x,y,x+6*c,y+1*c); bar(x-3*c,y+5*c,x-1*c,y+6*c);//pelo
bar(x-10*c,y-10*c,x+15*c,y); bar(x-2*c,y+1*c,x+5*c,y+2*c); bar(x-1*c,y+5*c,x,y+9*c);
setcolor(RED); bar(x-3*c,y+2*c,x+4*c,y+3*c); bar(x,y+7*c,x+1*c,y+9*c);
setfillstyle(1,RED); bar(x-3*c,y+3*c,x+9*c,y+4*c); bar(x+2*c,y+5*c,x+3*c,y+6*c);//ojo
bar(x,y+1,x-5*c,y+2*c); setfillstyle(1,BLACK); bar(x+2*c,y+6*c,x+4*c,y+7*c);
bar(x+2*c,y+2*c,x-4*c,y+3*c); bar(x+5*c,y+1*c,x+6*c,y+2*c); bar(x-4*c,y+6*c,x-3*c,y+11*c);//pelo
bar(x+3*c,y+3*c,x-3*c,y+4*c); bar(x+4*c,y+2*c,x+6*c,y+3*c); bar(x-5*c,y+8*c,x-4*c,y+10*c);
bar(x+3*c,y+4*c,x-9*c,y+5*c); setfillstyle(1,BROWN);//pelo bar(x-3*c,y+10*c,x-2*c,y+11*c);
setfillstyle(1,BLACK); bar(x-4*c,y+5*c,x-3*c,y+7*c); bar(x-2*c,y+11*c,x-1*c,y+12*c);
bar(x-4*c,y+2*c,x-5*c,y+3*c); bar(x-5*c,y+7*c,x-3*c,y+10*c); bar(x+4*c,y+8*c,x+5*c,y+9*c);//bigote
bar(x-3*c,y+3*c,x-5*c,y+4*c); bar(x-3*c,y+9*c,x-2*c,y+11*c); bar(x+2*c,y+9*c,x+9*c,y+10*c);
setfillstyle(1,BROWN); bar(x-2*c,y+10*c,x-1*c,y+11*c); bar(x+3*c,y+10*c,x+9*c,y+11*c);
bar(x+3*c,y+5*c,x+1*c,y+6*c);//pelo bar(x-3*c,y+10*c,x-2*c,y+11*c); setfillstyle(1,YELLOW);//cara
bar(x+1*c,y+5*c,x,y+9*c); bar(x-3*c,y+4*c,x,y+5*c); bar(x-3*c,y+6*c,x-1*c,y+9*c);
bar(x,y+7*c,x-1*c,y+9*c); bar(x+2*c,y+4*c,x+3*c,y+5*c); bar(x,y+5*c,x+2*c,y+7*c);
bar(x-2*c,y+5*c,x-3*c,y+6*c);//ojo bar(x-1*c,y+5*c,x,y+6*c); bar(x+1*c,y+7*c,x+4*c,y+9*c);
bar(x-2*c,y+6*c,x-4*c,y+7*c); bar(x+2*c,y+5*c,x+4*c,y+6*c); bar(x+3*c,y+5*c,x+7*c,y+6*c);
bar(x+4*c,y+6*c,x+3*c,y+11*c);//pelo bar(x-1*c,y+6*c,x+1*c,y+8*c); bar(x+4*c,y+6*c,x+9*c,y+8*c);
bar(x+5*c,y+8*c,x+4*c,y+10*c); bar(x+4*c,y+7*c,x+5*c,y+8*c); bar(x+5*c,y+8*c,x+9*c,y+9*c);
bar(x+3*c,y+10*c,x+2*c,y+11*c); bar(x+2*c,y+8*c,x+9*c,y+9*c); bar(x+9*c,y+7*c,x+11*c,y+9*c);
bar(x+2*c,y+11*c,x+1*c,y+12*c); bar(x+3*c,y+9*c,x+9*c,y+10*c); bar(x-3*c,y+9*c,x+2*c,y+10*c);
bar(x-4*c,y+8*c,x-5*c,y+9*c);//bigote bar(x+4*c,y+11*c,x+5*c,y+12*c); bar(x-2*c,y+10*c,x+3*c,y+11*c);
bar(x-2*c,y+9*c,x-9*c,y+10*c); setfillstyle(1,YELLOW);//cara bar(x-1*c,y+11*c,x+8*c,y+12*c);
bar(x-3*c,y+10*c,x-9*c,y+11*c); bar(x-3*c,y+5*c,x-1*c,y+9*c); //cuerpo
setfillstyle(1,YELLOW);//cara bar(x,y+4*c,x+2*c,y+6*c); setfillstyle(1,BLUE);//peto
bar(x+3*c,y+6*c,x+1*c,y+9*c); bar(x+3*c,y+4*c,x+7*c,y+5*c); bar(x,y+12*c,x+1*c,y+13*c);
bar(x,y+5*c,x-2*c,y+7*c); bar(x+4*c,y+5*c,x+9*c,y+6*c); bar(x+6*c,y+12*c,x+7*c,y+13*c);
bar(x-1*c,y+7*c,x-4*c,y+9*c); bar(x+1*c,y+6*c,x+11*c,y+7*c); bar(x-3*c,y+17*c,x+8*c,y+22*c);
bar(x-3*c,y+5*c,x-7*c,y+6*c); bar(x+1*c,y+7*c,x+4*c,y+8*c); bar(x+1*c,y+15*c,x+8*c,y+17*c);
bar(x-4*c,y+6*c,x-9*c,y+8*c); bar(x+5*c,y+7*c,x+11*c,y+8*c); bar(x+1*c,y+13*c,x+2*c,y+15*c);
bar(x-5*c,y+8*c,x-9*c,y+9*c); bar(x-1*c,y+8*c,x+2*c,y+9*c); bar(x+7*c,y+13*c,x+8*c,y+15*c);
bar(x-9*c,y+7*c,x-11*c,y+9*c); bar(x-2*c,y+9*c,x+3*c,y+10*c); bar(x-1*c,y+16*c,x,y+17*c);
bar(x+3*c,y+9*c,x-2*c,y+10*c); bar(x-1*c,y+10*c,x+8*c,y+11*c); bar(x-3*c,y+16*c,x-2*c,y+17*c);
bar(x+2*c,y+10*c,x-3*c,y+11*c); bar(x-1*c,y+11*c,x+4*c,y+12*c); bar(x-3*c,y+22*c,x+9*c,y+24*c);
bar(x+1*c,y+11*c,x-8*c,y+12*c); //cuerpo bar(x-2*c,y+24*c,x+9*c,y+26*c);
//cuerpo setfillstyle(1,BLUE);//peto bar(x-3*c,y+26*c,x+2*c,y+28*c);
setfillstyle(1,RED);//peto bar(x-1*c,y+11*c,x,y+12*c); bar(x+2*c,y+26*c,x+5*c,y+27*c);
bar(x,y+12*c,x-1*c,y+13*c); bar(x+7*c,y+11*c,x+8*c,y+12*c); bar(x-2*c,y+16*c,x-1*c,y+17*c);
bar(x-6*c,y+12*c,x-7*c,y+13*c); bar(x,y+12*c,x+1*c,y+13*c); bar(x,y+16*c,x+1*c,y+18*c);
bar(x+3*c,y+17*c,x-8*c,y+22*c); bar(x+6*c,y+12*c,x+7*c,y+13*c); setfillstyle(1,LIGHTGRAY);
bar(x-1*c,y+15*c,x-8*c,y+17*c); bar(x,y+13*c,x+7*c,y+21*c); bar(x+9*c,y+4*c,x+12*c,y+7*c);//mano izq
bar(x-1*c,y+13*c,x-2*c,y+15*c); bar(x-2*c,y+14*c,x,y+17*c); bar(x+8*c,y+5*c,x+9*c,y+6*c);
bar(x-7*c,y+13*c,x-8*c,y+15*c); bar(x-2*c,y+18*c,x,y+20*c); bar(x+11*c,y+7*c,x+12*c,y+9*c);
bar(x+1*c,y+16*c,x,y+17*c); bar(x-1*c,y+17*c,x,y+18*c); bar(x+9*c,y+9*c,x+11*c,y+10*c);
bar(x+3*c,y+16*c,x+2*c,y+17*c); bar(x+7*c,y+14*c,x+9*c,y+17*c); bar(x+9*c,y+10*c,x+10*c,y+11*c);
bar(x+3*c,y+22*c,x-9*c,y+24*c); bar(x+7*c,y+18*c,x+10*c,y+20*c); bar(x+8*c,y+11*c,x+9*c,y+12*c);
bar(x+2*c,y+24*c,x-9*c,y+26*c); bar(x+7*c,y+17*c,x+8*c,y+18*c); bar(x+1*c,y+12*c,x+6*c,y+13*c);//pecho
bar(x+3*c,y+26*c,x-2*c,y+28*c); setfillstyle(1,LIGHTGRAY);//pecho bar(x+2*c,y+13*c,x+7*c,y+15*c);
bar(x-2*c,y+26*c,x-5*c,y+27*c); bar(x,y+11*c,x+7*c,y+12*c); bar(x-8*c,y+13*c,x+1*c,y+16*c);//brazo der
bar(x+2*c,y+16*c,x+1*c,y+17*c); bar(x+1*c,y+12*c,x+6*c,y+13*c); bar(x-6*c,y+12*c,x,y+13*c);
bar(x,y+16*c,x-1*c,y+18*c); bar(x-4*c,y+11*c,x-1*c,y+12*c);//brazo izq bar(x-9*c,y+14*c,x-8*c,y+17*c);
setfillstyle(1,BROWN); bar(x-5*c,y+12*c,x,y+14*c); bar(x-2*c,y+16*c,x-1*c,y+17*c);
bar(x-9*c,y+4*c,x-12*c,y+7*c);//mano izq bar(x-5*c,y+14*c,x-2*c,y+17*c); bar(x-8*c,y+16*c,x-4*c,y+17*c);
bar(x-8*c,y+5*c,x-9*c,y+6*c); bar(x+8*c,y+10*c,x+9*c,y+11*c);//brazo der bar(x-7*c,y+17*c,x-5*c,y+18*c);
bar(x-11*c,y+7*c,x-12*c,y+9*c); bar(x+8*c,y+11*c,x+11*c,y+12*c); bar(x+9*c,y+22*c,x+12*c,y+26*c);//bota der
bar(x-9*c,y+9*c,x-11*c,y+10*c); bar(x+7*c,y+12*c,x+12*c,y+14*c); bar(x+10*c,y+20*c,x+12*c,y+22*c);
bar(x-9*c,y+10*c,x-10*c,y+11*c); bar(x+9*c,y+14*c,x+12*c,y+17*c); bar(x-7*c,y+23*c,x-3*c,y+27*c);//bota izq
bar(x-8*c,y+11*c,x-9*c,y+12*c); bar(x-4*c,y+20*c,x,y+21*c);//pie izq bar(x-3*c,y+24*c,x-2*c,y+26*c);
bar(x-1*c,y+12*c,x-6*c,y+13*c);//pecho bar(x-2*c,y+19*c,x,y+20*c); bar(x-7*c,y+27*c,x-5*c,y+29*c);
bar(x-2*c,y+13*c,x-7*c,y+15*c); bar(x+7*c,y+20*c,x+11*c,y+21*c);//pie der setfillstyle(1,YELLOW);
bar(x+8*c,y+13*c,x-1*c,y+16*c);//brazo der bar(x+7*c,y+19*c,x+9*c,y+20*c); bar(x-10*c,y+17*c,x-7*c,y+20*c);//mano der
bar(x+6*c,y+12*c,x,y+13*c); setfillstyle(1,YELLOW);//mano izq bar(x-7*c,y+18*c,x-5*c,y+20*c);
bar(x+9*c,y+14*c,x+8*c,y+17*c); bar(x-5*c,y+17*c,x-1*c,y+18*c); bar(x-9*c,y+20*c,x-7*c,y+21*c);
bar(x+2*c,y+16*c,x+1*c,y+17*c); bar(x-5*c,y+18*c,x-2,y+19*c); bar(x+8*c,y,x+12*c,y+4*c);//mano izq
bar(x+8*c,y+16*c,x+4*c,y+17*c); bar(x-5*c,y+19*c,x-2,y+20*c); }
bar(x+7*c,y+17*c,x+5*c,y+18*c); bar(x+8*c,y+17*c,x+12*c,y+18*c);//mano der
bar(x-9*c,y+22*c,x-12*c,y+26*c);//bota der bar(x+9*c,y+18*c,x+12*c,y+19*c); void juegos::sMario2Ab1(int x,int y1,int c)
bar(x-10*c,y+20*c,x-12*c,y+22*c); bar(x+9*c,y+19*c,x+11*c,y+20*c); {
bar(x+7*c,y+23*c,x+3*c,y+27*c);//bota izq } // cabeza
bar(x+3*c,y+24*c,x+2*c,y+26*c); y1=530;
bar(x+7*c,y+27*c,x+5*c,y+29*c); void juegos::sMario11(int x, int y,int c) setcolor(BLACK);
setfillstyle(1,YELLOW); { setfillstyle(1,BLUE);
bar(x+10*c,y+17*c,x+7*c,y+20*c);//mano der // cabeza bar(x,y1,x-6*c,y1+1*c);
bar(x+7*c,y+18*c,x+5*c,y+20*c); setcolor(RED); bar(x+2*c,y1+1*c,x-5*c,y1+2*c);
bar(x+9*c,y+20*c,x+7*c,y+21*c); setfillstyle(1,BLUE); bar(x+3*c,y1+2*c,x-4*c,y1+3*c);
bar(x-8*c,y,x-12*c,y+4*c);//mano izq bar(x,y+1,x+5*c,y+2*c); bar(x+3*c,y1+3*c,x-9*c,y1+4*c);
} bar(x-2*c,y+2*c,x+4*c,y+3*c); setfillstyle(1,BLACK);
bar(x-3*c,y+3*c,x+3*c,y+4*c); bar(x-5*c,y1+1*c,x-6*c,y1+2*c);
void juegos::sMario21(int x,int y,int c) bar(x-3*c,y+4*c,x+9*c,y+5*c); bar(x-4*c,y1+2*c,x-6*c,y1+3*c);
{ y=530; setfillstyle(1,BLACK); setfillstyle(1,BROWN);//pelo
// cabeza bar(x+4*c,y+2*c,x+5*c,y+3*c); bar(x+4*c,y1+5*c,x+3*c,y1+7*c);
bar(x+5*c,y1+7*c,x+3*c,y1+10*c);
bar(x+3*c,y1+9*c,x+2*c,y1+11*c);
bar(x+2*c,y1+10*c,x+1*c,y1+11*c);
bar(x+3*c,y1+10*c,x+2*c,y1+11*c);
bar(x+3*c,y1+4*c,x,y1+5*c);
bar(x-2*c,y1+4*c,x-
3*c,y1+5*c);
bar(x+1*c,y1+5*c,x,y1+6*c);
bar(x-2*c,y1+5*c,x-
4*c,y1+6*c);
bar(x+1*c,y1+6*c,x-
1*c,y1+8*c);
bar(x-4*c,y1+7*c,x-
5*c,y1+8*c);
bar(x-2*c,y1+8*c,x-
9*c,y1+9*c);
bar(x-3*c,y1+9*c,x-
9*c,y1+10*c);
bar(x-4*c,y1+11*c,x-
5*c,y1+12*c);
setfillstyle(1,YELLOW);//cara
bar(x+3*c,y1+5*c,x+1*c,y1+9*c);
bar(x,y1+4*c,x-2*c,y1+6*c);
bar(x-3*c,y1+4*c,x-
7*c,y1+5*c);
bar(x-4*c,y1+5*c,x-
9*c,y1+6*c);
bar(x-1*c,y1+6*c,x-
11*c,y1+7*c);
bar(x-1*c,y1+7*c,x-
4*c,y1+8*c);
bar(x-5*c,y1+7*c,x-
11*c,y1+8*c); bar(x,y+12*c,x-1*c,y+13*c);
bar(x+1*c,y1+8*c,x-2*c,y1+9*c); void juegos::sMario1Ab1(int x, int y,int c) bar(x-6*c,y+12*c,x-7*c,y+13*c);
bar(x+2*c,y1+9*c,x-3*c,y1+10*c); { bar(x+3*c,y+17*c,x-8*c,y+22*c);
bar(x+1*c,y1+10*c,x-8*c,y1+11*c); // cabeza bar(x-1*c,y+15*c,x-8*c,y+17*c);
bar(x+1*c,y1+11*c,x-4*c,y1+12*c); setcolor(LIGHTGREEN); bar(x-1*c,y+13*c,x-2*c,y+15*c);
//cuerpo setfillstyle(1,LIGHTGREEN); bar(x-7*c,y+13*c,x-8*c,y+15*c);
setfillstyle(1,BLUE);//peto bar(x-10*c,y-10*c,x+15*c,y); bar(x+1*c,y+16*c,x,y+17*c);
bar(x+1*c,y1+11*c,x,y1+12*c); setcolor(BLUE); bar(x+3*c,y+16*c,x+2*c,y+17*c);
bar(x-7*c,y1+11*c,x-8*c,y1+12*c); setfillstyle(1,BLUE); bar(x+3*c,y+22*c,x-9*c,y+24*c);
bar(x,y1+12*c,x-1*c,y1+13*c); bar(x,y+1,x-5*c,y+2*c); bar(x+2*c,y+24*c,x-9*c,y+26*c);
bar(x-6*c,y1+12*c,x-7*c,y1+13*c); bar(x+2*c,y+2*c,x-4*c,y+3*c); bar(x+3*c,y+26*c,x-2*c,y+28*c);
bar(x,y1+13*c,x-7*c,y1+21*c); bar(x+3*c,y+3*c,x-3*c,y+4*c); bar(x-2*c,y+26*c,x-5*c,y+27*c);
bar(x+2*c,y1+14*c,x,y1+17*c); bar(x+3*c,y+4*c,x-9*c,y+5*c); bar(x+2*c,y+16*c,x+1*c,y+17*c);
bar(x+2*c,y1+18*c,x,y1+20*c); setfillstyle(1,BLACK); bar(x,y+16*c,x-1*c,y+18*c);
bar(x+1*c,y1+17*c,x,y1+18*c); bar(x-4*c,y+2*c,x-5*c,y+3*c); setfillstyle(1,LIGHTGRAY);
bar(x-7*c,y1+14*c,x-9*c,y1+17*c); bar(x-3*c,y+3*c,x-5*c,y+4*c); bar(x-9*c,y+4*c,x-12*c,y+7*c);//mano izq
bar(x-7*c,y1+18*c,x-10*c,y1+20*c); setfillstyle(1,BROWN); bar(x-8*c,y+5*c,x-9*c,y+6*c);
bar(x-7*c,y1+17*c,x-8*c,y1+18*c); bar(x+3*c,y+5*c,x+1*c,y+6*c);//pelo bar(x-11*c,y+7*c,x-12*c,y+9*c);
setfillstyle(1,LIGHTGRAY);//pecho bar(x+1*c,y+5*c,x,y+9*c); bar(x-9*c,y+9*c,x-11*c,y+10*c);
bar(x,y1+11*c,x-7*c,y1+12*c); bar(x,y+7*c,x-1*c,y+9*c); bar(x-9*c,y+10*c,x-10*c,y+11*c);
bar(x-1*c,y1+12*c,x-6*c,y1+13*c); bar(x-2*c,y+5*c,x-3*c,y+6*c);//ojo bar(x-8*c,y+11*c,x-9*c,y+12*c);
bar(x+4*c,y1+11*c,x+1*c,y1+12*c);//brazo bar(x-2*c,y+6*c,x-4*c,y+7*c); bar(x-1*c,y+12*c,x-6*c,y+13*c);//pecho
izq bar(x+4*c,y+6*c,x+3*c,y+11*c);//pelo bar(x-2*c,y+13*c,x-7*c,y+15*c);
bar(x+5*c,y1+12*c,x,y1+14*c); bar(x+5*c,y+8*c,x+4*c,y+10*c); bar(x+8*c,y+13*c,x-1*c,y+16*c);//brazo der
bar(x+5*c,y1+14*c,x+2*c,y1+17*c); bar(x+3*c,y+10*c,x+2*c,y+11*c); bar(x+6*c,y+12*c,x,y+13*c);
bar(x-8*c,y1+10*c,x-9*c,y1+11*c);//brazo der bar(x+2*c,y+11*c,x+1*c,y+12*c); bar(x+9*c,y+14*c,x+8*c,y+17*c);
bar(x-8*c,y1+11*c,x-11*c,y1+12*c); bar(x-4*c,y+8*c,x-5*c,y+9*c);//bigote bar(x+2*c,y+16*c,x+1*c,y+17*c);
bar(x-7*c,y1+12*c,x-12*c,y1+14*c); bar(x-2*c,y+9*c,x-9*c,y+10*c); bar(x+8*c,y+16*c,x+4*c,y+17*c);
bar(x-9*c,y1+14*c,x-12*c,y1+17*c); bar(x-3*c,y+10*c,x-9*c,y+11*c); bar(x+7*c,y+17*c,x+5*c,y+18*c);
bar(x+4*c,y1+20*c,x,y1+21*c);//pie izq setfillstyle(1,YELLOW);//cara bar(x-9*c,y+22*c,x-12*c,y+26*c);//bota der
bar(x+2*c,y1+19*c,x,y1+20*c); bar(x+3*c,y+6*c,x+1*c,y+9*c); bar(x-10*c,y+20*c,x-12*c,y+22*c);
bar(x-7*c,y1+20*c,x-11*c,y1+21*c);//pie der bar(x,y+5*c,x-2*c,y+7*c); bar(x+7*c,y+23*c,x+3*c,y+27*c);//bota izq
bar(x-7*c,y1+19*c,x-9*c,y1+20*c); bar(x-1*c,y+7*c,x-4*c,y+9*c); bar(x+3*c,y+24*c,x+2*c,y+26*c);
setfillstyle(1,YELLOW);//mano izq bar(x-3*c,y+5*c,x-7*c,y+6*c); bar(x+7*c,y+27*c,x+5*c,y+29*c);
bar(x+5*c,y1+17*c,x+1*c,y1+18*c); bar(x-4*c,y+6*c,x-9*c,y+8*c); setfillstyle(1,YELLOW);
bar(x+5*c,y1+18*c,x+2,y1+19*c); bar(x-5*c,y+8*c,x-9*c,y+9*c); bar(x+10*c,y+17*c,x+7*c,y+20*c);//mano der
bar(x+5*c,y1+19*c,x+2,y1+20*c); bar(x-9*c,y+7*c,x-11*c,y+9*c); bar(x+7*c,y+18*c,x+5*c,y+20*c);
bar(x-8*c,y1+17*c,x-12*c,y1+18*c);//mano bar(x+3*c,y+9*c,x-2*c,y+10*c); bar(x+9*c,y+20*c,x+7*c,y+21*c);
der bar(x+2*c,y+10*c,x-3*c,y+11*c); bar(x-8*c,y,x-12*c,y+4*c);//mano izq
bar(x-9*c,y1+18*c,x-12*c,y1+19*c); bar(x+1*c,y+11*c,x-8*c,y+12*c); }
bar(x-9*c,y1+19*c,x-11*c,y1+20*c); //cuerpo
} setfillstyle(1,BLUE);//peto
int main( ) getimage(x-15*c,y-8,x+15*c,y+25*c,Mario1Ab);
{ cleardevice();
void *MarioParadoDer;
void *MarioParadoDer1; m.sMario1Ab1(x,y,t);
void *MarioParadoDerA; Mario1Ab1=malloc(imagesize(x-15*c,y-
void *MarioParadoArr; 8,x+15*c,y+25*c));
void *MarioParadoArrA; getimage(x-15*c,y-8,x+15*c,y+25*c,Mario1Ab1);
void *MarioParadoCam; cleardevice();
void *MarioParadoCamA;
void *Mario1;
m.sMario2Ab(x,y,t);
void *Mario2;
Mario2Ab=malloc(imagesize(x-15*c,y,x+15*c,y+26*c));
void *Mario1Ab;
getimage(x-15*c,y,x+15*c,y+26*c,Mario2Ab);
void *Mario2Ab;
cleardevice();
void *MarioParadoDerA1;
void *MarioParadoArr1;
void *MarioParadoArrA1; m.sMario2Ab1(x,y,t);
void *MarioParadoCam1; Mario2Ab1=malloc(imagesize(x-
void *MarioParadoCamA1; 15*c,y,x+15*c,y+26*c));
void *Mario11; getimage(x-15*c,y,x+15*c,y+26*c,Mario2Ab1);
void *Mario21; cleardevice();
void *Mario1Ab1;
void *Mario2Ab1; m.sMarioParadoDer(x,y,t);
void *hongo2; MarioParadoDer=malloc(imagesize(x-
void *hongo21; 15*c,y,x+15*c,y+26*c));
char f; getimage(x-15*c,y,x+15*c,y+26*c,MarioParadoDer);
juegos m; cleardevice();
int x=300,y=472,d=1,iz=0,i,c=7,
e=80,h=80,g=3,a,h1=850,e1=560,g1=3; m.sMarioParadoDer1(x,y,t);
int e2=655, h2=0, g2=5,e3=135, h3=700, g3=4, w=- MarioParadoDer1=malloc(imagesize(x-
30,w1=660,w2=6; 15*c,y,x+15*c,y+26*c));
int e4=350, h4=800, g4=3,e5=350, h5=100, g5=3, getimage(x-15*c,y,x+15*c,y+26*c,MarioParadoDer1);
opc=0,cont=300, x1=438,y1=432, col=0; cleardevice();
initwindow( 1200 , 700 , "Mario Dinamico" );
setbkcolor(LIGHTGREEN); m.sMarioParadoDerA(x,y,t);
cleardevice(); MarioParadoDerA=malloc(imagesize(x-
15*c,y,x+15*c,y+26*c));
//m.hongo2(50,200,t,GREEN); getimage(x-
15*c,y,x+15*c,y+26*c,MarioParadoDerA);
cleardevice();

m.sMario1(x,y,t); m.sMarioParadoDerA1(x,y,t);
Mario1=malloc(imagesize(x-15*c,y-8,x+15*c,y+25*c)); MarioParadoDerA1=malloc(imagesize(x-
getimage(x-15*c,y-8,x+15*c,y+25*c,Mario1); 15*c,y,x+15*c,y+26*c));
cleardevice(); getimage(x-
15*c,y,x+15*c,y+26*c,MarioParadoDerA1);
m.sMario11(x,y,t); cleardevice();
Mario11=malloc(imagesize(x-15*c,y-8,x+15*c,y+25*c));
getimage(x-15*c,y-8,x+15*c,y+25*c,Mario11); m.sMarioParadoCam(x,y,t);
cleardevice(); MarioParadoCam=malloc(imagesize(x-
15*c,y,x+15*c,y+26*c));
m.sMario2(x,y,t); getimage(x-
Mario2=malloc(imagesize(x-15*c,y,x+15*c,y+26*c)); 15*c,y,x+15*c,y+26*c,MarioParadoCam);
getimage(x-15*c,y,x+15*c,y+26*c,Mario2); cleardevice();
cleardevice();
m.sMarioParadoCam1(x,y,t);
m.sMario21(x,y,t); MarioParadoCam1=malloc(imagesize(x-
Mario21=malloc(imagesize(x-15*c,y,x+15*c,y+26*c)); 15*c,y,x+15*c,y+26*c));
getimage(x-15*c,y,x+15*c,y+26*c,Mario21); getimage(x-
cleardevice(); 15*c,y,x+15*c,y+26*c,MarioParadoCam1);
cleardevice();
m.sMario1Ab(x,y,t);
Mario1Ab=malloc(imagesize(x-15*c,y- m.sMarioParadoCamA(x,y,t);
8,x+15*c,y+25*c));
MarioParadoCamA=malloc(imagesize(x- bar(700,402,1200,425);
15*c,y,x+15*c,y+26*c));
getimage(x- putimage(x,y,MarioParadoDer,OR_PUT);
15*c,y,x+15*c,y+26*c,MarioParadoCamA); putimage(x,y,MarioParadoDer,AND_PUT);
cleardevice();

m.sMarioParadoCamA1(x,y,t); do
MarioParadoCamA1=malloc(imagesize(x- {
15*c,y,x+15*c,y+26*c)); getch();
getimage(x- f=getch();
15*c,y,x+15*c,y+26*c,MarioParadoCamA1); switch (f)
cleardevice(); {
//Arriba
m.sMarioParadoArr(x,y,t); case 72: if (y>0)
MarioParadoArr=malloc(imagesize(x- {
15*c,y,x+15*c,y+26*c)); if(col==1)
getimage(x- { if(opc==1)
15*c,y,x+15*c,y+26*c,MarioParadoArr); {
cleardevice(); for(y=472;y>=442;y--)
{
m.sMarioParadoArr1(x,y,t); putimage(x,y,Mario1Ab1,OR_PUT);
MarioParadoArr1=malloc(imagesize(x- putimage(x,y,Mario1Ab1,AND_PUT);
15*c,y,x+15*c,y+26*c)); }
getimage(x- for(y=442;y<=472;y++)
15*c,y,x+15*c,y+26*c,MarioParadoArr1); {
cleardevice(); putimage(x,y,Mario1Ab1,OR_PUT);
putimage(x,y,Mario1Ab1,AND_PUT);
}
m.sMarioParadoArrA(x,y,t);
putimage(x,y,MarioParadoDerA1,OR_PUT);
MarioParadoArrA=malloc(imagesize(x-
putimage(x,y,MarioParadoDerA1,AND_PUT);
15*c,y,x+15*c,y+26*c));
}
getimage(x-
else
15*c,y,x+15*c,y+26*c,MarioParadoArrA);
{
cleardevice();
for(a=472;a>=442;a--)
{
m.sMarioParadoArrA1(x,y,t); putimage(x,a,Mario11,OR_PUT);
MarioParadoArrA1=malloc(imagesize(x- putimage(x,a,Mario11,AND_PUT);
15*c,y,x+15*c,y+26*c));
getimage(x-
}
15*c,y,x+15*c,y+26*c,MarioParadoArrA1);
for(a=442;a<=472;a++)
cleardevice();
{
putimage(x,a,Mario11,OR_PUT);
m.hongo2(x1,y1,5,MAGENTA); putimage(x,a,Mario11,AND_PUT);
hongo2=malloc(imagesize(x1-4*c,y1- }
1*c,x1+8*c,y1+11*c)); putimage(x,y,MarioParadoDer1,OR_PUT);
getimage(x1-4*c,y1-1*c,x1+8*c,y1+11*c,hongo2); putimage(x,y,MarioParadoDer1,AND_PUT);
cleardevice(); }}
else
setfillstyle(1,LIGHTBLUE); {
bar(0,0,1200,400); if(opc==1)
{
setfillstyle(1,BLACK); for(y=472;y>=442;y--)
bar(0,398,1200,402); {
putimage(x,y,Mario1Ab,OR_PUT);
m.sNube(h,e,g); putimage(x,y,Mario1Ab,AND_PUT);
m.sNube2(h3,e3,g3);
m.sPoste(h1,e1,g1); }
m.sPasto1(h4,e4,g4); for(y=442;y<=472;y++)
m.sPasto2(h5,e5,g5); {
m.sSuelo(h2,e2,g2); putimage(x,y,Mario1Ab,OR_PUT);
m.sCuadros(w,w1,w2); putimage(x,y,Mario1Ab,AND_PUT);
setfillstyle(1,LIGHTGREEN); }
bar(0,402,290,425); putimage(x,y,MarioParadoDerA,OR_PUT);
putimage(x,y,MarioParadoDerA,AND_PUT); if(col==1)
} {
else putimage(x--,y,MarioParadoDerA1,OR_PUT);
{ putimage(x--,y,MarioParadoDerA1,AND_PUT);
for(a=472;a>=442;a--) Sleep(100);
{ putimage(x--,y,MarioParadoArrA1,OR_PUT);
putimage(x,a,Mario1,OR_PUT); putimage(x--,y,MarioParadoArrA1,AND_PUT);
putimage(x,a,Mario1,AND_PUT); Sleep(100);
putimage(x--,y,MarioParadoCamA1,OR_PUT);
}
for(a=442;a<=472;a++) putimage(x--,y,MarioParadoCamA1,AND_PUT);
{ Sleep(100);
putimage(x,a,Mario1,OR_PUT); putimage(x--,y,MarioParadoArrA1,OR_PUT);
putimage(x,a,Mario1,AND_PUT); putimage(x--,y,MarioParadoArrA1,AND_PUT);
} Sleep(100);
putimage(x,y,MarioParadoDer,OR_PUT); putimage(x--,y,MarioParadoDerA1,OR_PUT);
putimage(x,y,MarioParadoDer,AND_PUT); putimage(x--,y,MarioParadoDerA1,AND_PUT);
}} Sleep(100);
} opc=1;
break; cont--;
//Abajo }
case 80: if(y<670) else
{ {
if(col==1) putimage(x--,y,MarioParadoDerA,OR_PUT);
{if(opc==1) putimage(x--,y,MarioParadoDerA,AND_PUT);
{ Sleep(100);
putimage(x,y,Mario2Ab1,OR_PUT); putimage(x--,y,MarioParadoArrA,OR_PUT);
putimage(x,y,Mario2Ab1,AND_PUT); putimage(x--,y,MarioParadoArrA,AND_PUT);
delay(200); Sleep(100);
putimage(x,y,MarioParadoDerA1,OR_PUT); putimage(x--,y,MarioParadoCamA,OR_PUT);
putimage(x,y,MarioParadoDerA1,AND_PUT); putimage(x--,y,MarioParadoCamA,AND_PUT);
} Sleep(100);
else putimage(x--,y,MarioParadoArrA,OR_PUT);
{ putimage(x--,y,MarioParadoArrA,AND_PUT);
putimage(x,y,Mario21,OR_PUT); Sleep(100);
putimage(x,y,Mario21,AND_PUT); putimage(x--,y,MarioParadoDerA,OR_PUT);
delay(200); putimage(x--,y,MarioParadoDerA,AND_PUT);
putimage(x,y,MarioParadoDer1,OR_PUT); Sleep(100);
putimage(x,y,MarioParadoDer1,AND_PUT); opc=1;
} cont-=10;
} }}
else break;
{ //Derecha
if(opc==1) case 77: if(x<635)
{ {
putimage(x,y,Mario2Ab,OR_PUT); if(col==1)
putimage(x,y,Mario2Ab,AND_PUT); {
delay(200); putimage(x++,y,MarioParadoDer1,OR_PUT);
putimage(x,y,MarioParadoDerA,OR_PUT); putimage(x++,y,MarioParadoDer1,AND_PUT);
putimage(x,y,MarioParadoDerA,AND_PUT); delay(100);
} putimage(x++,y,MarioParadoArr1,OR_PUT);
else putimage(x++,y,MarioParadoArr1,AND_PUT);
{ delay(100);
putimage(x,y,Mario2,OR_PUT); putimage(x++,y,MarioParadoCam1,OR_PUT);
putimage(x,y,Mario2,AND_PUT); putimage(x+
delay(200); +,y,MarioParadoCam1,AND_PUT);
putimage(x,y,MarioParadoDer,OR_PUT); delay(100);
putimage(x,y,MarioParadoDer,AND_PUT); putimage(x++,y,MarioParadoArr1,OR_PUT);
}} putimage(x++,y,MarioParadoArr1,AND_PUT);
} delay(100);
break; putimage(x++,y,MarioParadoDer1,OR_PUT);
//Izquierda putimage(x++,y,MarioParadoDer1,AND_PUT);
case 75: if(x>-40) delay(100);
{ opc=0;
cont+=10; putimage(x1,y1++,hongo2,AND_PUT);
} }
else for(x11=438;x11>=350;x11--)
{ { putimage(x1--,y1,hongo2,OR_PUT);
putimage(x++,y,MarioParadoDer,OR_PUT); putimage(x1--,y1,hongo2,AND_PUT);
putimage(x++,y,MarioParadoDer,AND_PUT); }
delay(100);
putimage(x++,y,MarioParadoArr,OR_PUT); for(x11=350;x11<=470;x11++)
putimage(x++,y,MarioParadoArr,AND_PUT); { putimage(x1++,y1,hongo2,OR_PUT);
delay(100); putimage(x1++,y1,hongo2,AND_PUT);
putimage(x++,y,MarioParadoCam,OR_PUT); }
putimage(x++,y,MarioParadoCam,AND_PUT); for(x11=470;x11>=0;x11--)
delay(100); { putimage(x1--,y1,hongo2,OR_PUT);
putimage(x++,y,MarioParadoArr,OR_PUT); putimage(x1--,y1,hongo2,AND_PUT);
putimage(x++,y,MarioParadoArr,AND_PUT); }
delay(100); col=1;
putimage(x++,y,MarioParadoDer,OR_PUT); }
putimage(x++,y,MarioParadoDer,AND_PUT);
delay(100);
}while (f!=27);
opc=0;
getch();
cont+=10;
free(MarioParadoDer);
}
free(MarioParadoCam);
}
free(MarioParadoArr);
break;
free(MarioParadoDerA);
}//Fin del Switch
free(MarioParadoCamA);
free(MarioParadoArrA);
if(cont==520)
{ int x11,y11;
closegraph( );

for(y11=432;y11<=500;y11++)
return( 0 );
{ putimage(x1,y1++,hongo2,OR_PUT);
}

Вам также может понравиться