|
|
|
@ -4,8 +4,8 @@
|
|
|
|
|
|
|
|
|
|
void main(void)
|
|
|
|
|
{
|
|
|
|
|
int tAd[TAILLE], tage[TAILLE], tstate[TAILLE], tacti[TAILLE], tpasseoupas[TAILLE], tptsbought[TAILLE], tptsbonus[TAILLE], place, nbacti, chxacti, numAd, ret;
|
|
|
|
|
char tcateg[TAILLE], nom[TAILLE], pnom[TAILLE], fnom[TAILLE], fpnom[TAILLE], bCard, member, tnom[TAILLE][15], tpnom[TAILLE][15], action, choix;
|
|
|
|
|
int tAd[TAILLE], tage[TAILLE], tstate[TAILLE], tacti[TAILLE], tpasseoupas[TAILLE], tptsbought[TAILLE], tptsbonus[TAILLE], place, nbacti, chxacti, numAd, ret, insuf;
|
|
|
|
|
char tcateg[TAILLE], nom[TAILLE], pnom[TAILLE], fnom[TAILLE], fpnom[TAILLE], bCard, member, tnom[TAILLE][15], tpnom[TAILLE][15], action, choix, recharge;
|
|
|
|
|
Fillvar(tAd, tnom, tpnom, tage, tstate, tacti, tpasseoupas, tptsbought, tptsbonus, tcateg, 500);
|
|
|
|
|
|
|
|
|
|
printf("Bienvenue ! \nMembre (M) | Création compte (C)\n");
|
|
|
|
@ -15,7 +15,7 @@ void main(void)
|
|
|
|
|
printf("Saisir un caractère correct (Membre M ou Création C)\n");
|
|
|
|
|
scanf("%*c%c%*c", &member);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bCard = Card();//demande si carte avec client ou non
|
|
|
|
|
|
|
|
|
@ -76,21 +76,30 @@ void main(void)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
chxacti = ChoiceActi(nbacti, tacti);
|
|
|
|
|
CheckPts(tptsbonus, tptsbought, tpasseoupas, place, chxacti);
|
|
|
|
|
|
|
|
|
|
CheckPts(tptsbonus, tptsbought, tpasseoupas, tacti, tcateg, place, chxacti, &insuf);
|
|
|
|
|
if (insuf == 1)
|
|
|
|
|
{
|
|
|
|
|
printf("Nombre de points insuffisants : Recharge (R) ou Quitter (Q)");
|
|
|
|
|
scanf("%*c%c%*c", &recharge);
|
|
|
|
|
if (recharge == 'R')
|
|
|
|
|
{
|
|
|
|
|
Recharge(tptsbought, place, tcateg);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
ChoiceMenu(&choix);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tacti[place] = chxacti;
|
|
|
|
|
|
|
|
|
|
ChoiceMenu(&choix);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (choix == 'Q')
|
|
|
|
|
{
|
|
|
|
|
//menuglobal()
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|