Mise à jour de 'src/app/core_logic/responsable.c'

pull/2/head^2
parent 628cad5e13
commit a232db8ffe

@ -25,4 +25,23 @@ int chargementArticles(int tRef[], float tPoids[], float tVol[], float tPrix[],
i++; i++;
} }
return i; return i;
}
void sauvegadArticles(int tRef[], float tPoids[], float tVol[], float tPrix[], float tLogique)
{
int i;
FILE * fe;
fe = fopen("articles.txt","w");
if ( fe == NULL )
{
perror("fopen");
return -1;
}
for ( i = 0; i < tLogique; ++i)
{
fwritef(fe,"%d\t %.2f\t %.2f\t %.2f\n", );
}
fclose(fe);
} }
Loading…
Cancel
Save