1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| void Facile::Gagne()
{
int x = 0;
x = QString::compare(motJoueur, motMystere) == 0;
temporaire->setText("motMystere=" + motMystere + " motJoueur=" + (Reponse->text()) + " x = " + x);
if (Reponse->text().isEmpty())
QMessageBox::critical(this, "Erreur", "Tu doit entrer au moins un mot");
coupRestants--;
if (QString::compare(motJoueur, motMystere) == 0)
{
bonMot = true;
QMessageBox::critical(this, "WAHOO", "ca compare.");
}
else
{
QMessageBox::critical(this, "Erreur", "Désolé, ce n'est pas comme ca.");
coupRestants--;
}
} |
Partager