I'm doing a blackjack simulator but when compiling the .exe file it stops working, showing the empty console. I leave the main in case the problem is there.
int main(){
Baraja *Inglesa;
Jugador *Jugador1;
Jugador *Jugador2;
Crupier *crupier;
int a=0;
int b=0;
int c=0;
Inglesa->barajar();
cout<<"Bienvenidos al Blackjack"<<endl;
for (int i = 0; i<2; i++){
a = Inglesa->robar()->getNumero() + a;
b = Inglesa->robar()->getNumero() + b;
c = Inglesa->robar()->getNumero() + c;
}
Jugador1->setPuntaje(a);
Jugador2->setPuntaje(b);
crupier->setPuntaje(c);
cout<<"Jugador 1 tu puntaje inicial es: "<<Jugador1->getPuntaje()<<endl;
Jugador1->Jugar(Inglesa);
cout<<"Jugador 2 tu puntaje inicial es: "<<Jugador2->getPuntaje()<<endl;
Jugador2->Jugar(Inglesa);
crupier->Jugar(Inglesa);
if(Jugador1->getPuntaje() > Jugador2->getPuntaje() && Jugador1->getPuntaje() > crupier->getPuntaje() )
{
cout<<"El Jugador 1 es el ganador!";
}
if(Jugador2->getPuntaje() > Jugador1->getPuntaje() && Jugador2->getPuntaje() > crupier->getPuntaje() )
{
cout<<"El Jugador 2 es el ganador!";
}
else{
cout<<"Gana la mesa";
}
return 0;}