|
|
@ -65,7 +65,7 @@ int login(int clientID[], int clientPassword[], int isAdmin[], int tlog)
|
|
|
|
|
|
|
|
|
|
|
|
int signup(int clientID[], int clientPassword[], float cagnotte[], int suspended[], int isAdmin[], int *tlog)
|
|
|
|
int signup(int clientID[], int clientPassword[], float cagnotte[], int suspended[], int isAdmin[], int *tlog)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int id, password, index, found;
|
|
|
|
int id, password, index, found, status;
|
|
|
|
printf("Entrez votre identifiant: ");
|
|
|
|
printf("Entrez votre identifiant: ");
|
|
|
|
scanf("%d%*c", &id);
|
|
|
|
scanf("%d%*c", &id);
|
|
|
|
while (id < 0)
|
|
|
|
while (id < 0)
|
|
|
@ -94,7 +94,11 @@ int signup(int clientID[], int clientPassword[], float cagnotte[], int suspended
|
|
|
|
scanf("%d%*c", &password);
|
|
|
|
scanf("%d%*c", &password);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//! Ne pas oublier de décaler vers la droite
|
|
|
|
decalageADroite(clientID, index, *tlog);
|
|
|
|
|
|
|
|
decalageADroite(clientPassword, index, *tlog);
|
|
|
|
|
|
|
|
decalageADroite(cagnotte, index, *tlog);
|
|
|
|
|
|
|
|
decalageADroite(suspended, index, *tlog);
|
|
|
|
|
|
|
|
decalageADroite(isAdmin, index, *tlog);
|
|
|
|
|
|
|
|
|
|
|
|
clientPassword[index] = encrypt(password);
|
|
|
|
clientPassword[index] = encrypt(password);
|
|
|
|
|
|
|
|
|
|
|
|