master
lolax 2 years ago
parent 9c211d289d
commit 06077ee8e4

12
sae.c

@ -173,7 +173,7 @@ void Recharge(int *tptsbought, int place, char *tcateg)
topay = dizpts * 2;
tptsbought[place] += nbpts;
printf("Vous avez désormais %d points sur la carte, vous nous devez %d\n", tptsbought[place], topay);
printf("Vous avez désormais %d points sur la carte, vous nous devez %d\n", tptsbought[place], topay);
}
if (tcateg[place] == 'S')
@ -182,7 +182,7 @@ void Recharge(int *tptsbought, int place, char *tcateg)
topay = dizpts * 4;
tptsbought[place] += nbpts;
printf("Vous avez désormais %d points sur la carte, vous nous devez %d\n", tptsbought[place], topay);
printf("Vous avez désormais %d points sur la carte, vous nous devez %d\n", tptsbought[place], topay);
}
if (tcateg[place] == 'A')
@ -191,7 +191,7 @@ void Recharge(int *tptsbought, int place, char *tcateg)
topay = dizpts * 6;
tptsbought[place] += nbpts;
printf("Vous avez désormais %d points sur la carte, vous nous devez %d\n", tptsbought[place], topay);
printf("Vous avez désormais %d points sur la carte, vous nous devez %d\n", tptsbought[place], topay);
}
}
@ -271,12 +271,14 @@ void CheckPts(int *tptsbonus, int *tptsbought, int *tpasseoupas, int *tacti, cha
if (ptsneeded <= tptsbought[place])
{
("Points suffisants, confirmation ? (O/N) \n");
scanf("%*c%c%*c", &confirm);
printf("Points suffisants, confirmation ? (O/N) \n");
scanf("%c%*c", &confirm);
if (confirm == 'O')
{
tptsbought[place] -= ptsneeded;
tptsbonus[place] += ptsneeded;
printf("Achat effectué\n");
if (tptsbonus[place] >= 100)
{
tptsbought[place] += 15;

BIN
testlo

Binary file not shown.

@ -2,7 +2,7 @@
#include <string.h>
#include <stdio.h>
void GereAdhérent(void)
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;

Loading…
Cancel
Save