1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| int verification (int panier_2[],int& nombre_entre)
{
bool disponibilite = false;
while (disponibilite != true)
{
cin >> nombre_entre;
int i = 0;
for (i = 0; i < 6; i++)
{
if (panier_2[i] == nombre_entre)
{
disponibilite = true;
}
}
if (disponibilite != true)
{
cout << "veuillez inscrire un nombre disponible" << endl;
}
}
}
int operation (int panier_2[])
{
int operateur, nombre_entre,;
cout << "votre première plaque?" << endl;
verification (panier_2, nombre_entre);
cout << "votre opérateur?" << endl;
cin >> operateur;
cout << "votre deuxième plaque?" << endl;
verification (panier_2, nombre_entre);
} |
Partager