Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void comb1v1(lista<Jugador*> Particpantes, comando){
- if(Particpantes.getsize() != 2)
- //Numero de Participantes invalido
- {
- Error(8, comando)
- }
- nodopilaluchadores * aux = J1->pila.rettop();
- Luchador * Luch1 = aux->per;
- J1->pila.Desapilar();
- J1->pila.enpilar(aux);
- free(aux);
- aux = J2->pila.rettop();
- Luchador * Luch2 = aux->per;
- J2->pila.Desapilar();
- J2->pila.enpilar(aux);
- free(aux);
- J1->calcular(Luch1, Luch2);
- J2->calcular(Luch2, Luch1);
- free(J1);
- free(J2);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement