@ -30,7 +31,7 @@ int AjoutAdherent(int tNoCarte[], int tage[], int tPointsCarte[], int tCarteActi
{
{
if(j==tmax)
if(j==tmax)
{
{
printf("Tableau plein, impossible d'ajouter un adhérent\n");
printf("Tableau plein, impossible d'ajouter un adhérent.\n");
return-1;
return-1;
}
}
tNoCarte[j]=tNoCarte[j-1];
tNoCarte[j]=tNoCarte[j-1];
@ -44,7 +45,7 @@ int AjoutAdherent(int tNoCarte[], int tage[], int tPointsCarte[], int tCarteActi
tPointsCarte[pas]=0;
tPointsCarte[pas]=0;
tCarteActive[pas]=0;
tCarteActive[pas]=0;
nbelem++;
nbelem++;
printf("Le numero de carte de l'adherent qui a %d ans est %d.\nLa carte n'est pas active car il n'y a pas de points dessus.\nVoulez-vous en ajouter ? (O / N)",tage[pas],tNoCarte[pas]);
printf("Vous avez créé l'adhérent numéro %d. Il a %d ans.\nSa carte n'est pas active car il n'y a pas de points dessus.\nVoulez-vous en ajouter ? (o/n)\n",tNoCarte[pas],tage[pas]);
scanf("%*c%c",&reponse);
scanf("%*c%c",&reponse);
if(reponse=='O'||reponse=='o')
if(reponse=='O'||reponse=='o')
{
{
@ -66,13 +67,14 @@ void ModificationAge(int tNoCarte[], int tage[], int nbelem)