Advertisement
Guest User

Untitled

a guest
Jan 20th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.54 KB | None | 0 0
  1. void comb1v1(lista<Jugador*> Particpantes, comando){
  2.     if(Particpantes.getsize() != 2)
  3.     //Numero de Participantes invalido
  4.     {
  5.     Error(8, comando)
  6.     }
  7.     nodopilaluchadores * aux = J1->pila.rettop();
  8.     Luchador * Luch1 = aux->per;
  9.     J1->pila.Desapilar();
  10.     J1->pila.enpilar(aux);
  11.     free(aux);
  12.     aux = J2->pila.rettop();
  13.     Luchador * Luch2 = aux->per;
  14.     J2->pila.Desapilar();
  15.     J2->pila.enpilar(aux);
  16.     free(aux);
  17.     J1->calcular(Luch1, Luch2);
  18.     J2->calcular(Luch2, Luch1);
  19.     free(J1);
  20.     free(J2);
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement