#include "sae.h" #include #include void main(void) { int tAd[TAILLE], tage[TAILLE], tstate[TAILLE], tacti[TAILLE], tpasseoupas[TAILLE], tptsbought[TAILLE], tptsbonus[TAILLE], place, nbacti, choix, chxacti, numAd, ret, insuf, day = 0; char tcateg[TAILLE], nom[TAILLE], pnom[TAILLE], fnom[TAILLE], fpnom[TAILLE], bCard, tnom[TAILLE][15], tpnom[TAILLE][15], action, recharge; place = Fillvar(tAd, tnom, tpnom, tage, tstate, tacti, tpasseoupas, tptsbought, tptsbonus, tcateg, 500); bCard = Card();//demande si carte avec client ou non if (bCard == 'N')// si client n'a pas la carte { Name(nom, pnom); puts("Recherche de la carte !"); place = FindData(nom, pnom, tnom, tpnom, tpasseoupas, tptsbought, &action, 500); if (place == -1) { return; } } if (bCard == 'O') { printf("Numéro carte : \t"); scanf("%*c%d", &numAd); ret = FindN(tAd, numAd, tpasseoupas, 500); if (ret == -1) { main(); } } choix = ChoiceMenu(); Loop(tAd, tnom, tpnom, tage, tstate, tacti, tpasseoupas, tptsbought, tptsbonus, tcateg, &choix, &insuf, place, nbacti); if (choix == 4) { //menuglobal() return; } /*while (choix != 4) { choix =ChoiceMenu(); }*/ }