Skip to content

Conversation

Biagiocu99
Copy link

No description provided.


}

}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

questa funzione è un po' grande potresti provare a spezzarla in più funzioni

}
else if(x==0)
{
gioca_ancora=false;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

puoi usare "break" in questo caso e non dover utiizzare la variabile gioca_ancora

while (true) {
....
  else if (x == 0) {
    cout << "Esci!" << endl;
    break;
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants