void printOptions(int &difficultyDegree, int &maxLength)
{
int iteration = 0;
char choice;
bool keepAsking = false;
cout << endl;
cout << " PARAMETRES ACTUELS " << endl;
cout << " ================================" << endl;
cout << " | |" << endl;
cout << " | NIVEAU: |" << endl;
if (difficultyDegree == 1)
{
cout << " | 1 : Facile |" << endl;
}
else if (difficultyDegree == 2)
{
cout << " | 2 : Moyenne |" << endl;
}
else
{
cout << " | 3 : Difficile |" << endl;
}
cout << " | |" << endl;
cout << " | LONGUEUR MAX MOT: |" << endl;
cout << " | " << maxLength << " lettres " << endl;
cout << " | |" << endl;
cout << " ================================" << endl;
cout << endl;
cout << endl << endl;
cout << endl;
cout << " ================================" << endl;
cout << " | |" << endl;
cout << " | o : Changer les parametres |" << endl;
cout << " | n : Ne rien faire |" << endl;
cout << " | |" << endl;
cout << " ================================" << endl;
cout << endl;
cin >> choice;
do
{
if (iteration>0)
{
cout << "Vous avez entre un caractere incorrect, recommencez" << endl;
}
if (choice == 'o')
{
changeOptions (difficultyDegree, maxLength);
}
else if (choice == 'n');
else
{
keepAsking = true;
}
iteration ++;
}
while (keepAsking);
}