You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1.1 KiB
27 lines
1.1 KiB
#include "SAE.h"
|
|
|
|
void testOuverture(void)
|
|
{
|
|
int tNoCarte[500] = {0}, tage[500] = {0}, tPointsCarte[500] = {0}, tCarteActive[500] = {0};
|
|
int tDate[500] = {0}, tNbActivitesJour[500] = {0};
|
|
int tmax = 500, pas, i;
|
|
pas = Ouverture(tNoCarte, tage, tPointsCarte, tCarteActive, tNbActivitesJour, tDate, tmax);
|
|
printf("Pas: %d", &pas);
|
|
printf("Ncarte age pointsCarte carteActive nbActivitesJour Date taillemax\n");
|
|
for(i=0; i < pas; i++)
|
|
printf("\t%d\t%d\t%d\t%d\t%d\t%d\t%d\n", tNoCarte[i], tage[i], tPointsCarte[i], tCarteActive[i], tNbActivitesJour[i], tDate[i], &tmax);
|
|
}
|
|
|
|
void testSauvegarde(void)
|
|
{
|
|
int tNoCarte[500] = {0, 5, 7, 8, 8, 6, 6, 2, 1, 0}, tage[500] = {0, 5, 7, 8, 8, 6, 6, 2, 1, 0}, tPointsCarte[500] = {0, 5, 7, 8, 8, 6, 6, 2, 1, 0}, tCarteActive[500] = {0, 5, 7, 8, 8, 6, 6, 2, 1, 0};
|
|
int tDate[500] = {0, 5, 7, 8, 8, 6, 6, 2, 1, 0}, tNbActivitesJour[500] = {0, 5, 7, 8, 8, 6, 6, 2, 1, 0};
|
|
Sauvegarde(tNoCarte, tage, tPointsCarte, tCarteActive, tNbActivitesJour, tDate, 10);
|
|
}
|
|
|
|
int main(void)
|
|
{
|
|
//testOuverture();
|
|
testSauvegarde();
|
|
return 0;
|
|
} |