...
This commit is contained in:
parent
a5d525111c
commit
883f0bddf7
|
@ -57,7 +57,6 @@ int main()
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
printf("%u\n", panier.nbrArt);
|
|
||||||
if(panier.nbrArt <= __MAXNBRART__)
|
if(panier.nbrArt <= __MAXNBRART__)
|
||||||
{
|
{
|
||||||
encoderArticle(&(panier.article[panier.nbrArt-1]));
|
encoderArticle(&(panier.article[panier.nbrArt-1]));
|
||||||
|
@ -66,7 +65,6 @@ int main()
|
||||||
scanf("%c", &continuer);
|
scanf("%c", &continuer);
|
||||||
if(panier.nbrArt < 3 && (continuer|0b00100000) == 'y')
|
if(panier.nbrArt < 3 && (continuer|0b00100000) == 'y')
|
||||||
{
|
{
|
||||||
printf("%u\n", panier.nbrArt);
|
|
||||||
panier.nbrArt++;
|
panier.nbrArt++;
|
||||||
Article * tempArticle;
|
Article * tempArticle;
|
||||||
tempArticle = (Article*)realloc(panier.article, sizeof(Article)*(panier.nbrArt));
|
tempArticle = (Article*)realloc(panier.article, sizeof(Article)*(panier.nbrArt));
|
||||||
|
@ -195,11 +193,9 @@ int DateValide(int j, int m, int a)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void afficherArticle(Article * article, unsigned int nbrArt,FILE * file)
|
void afficherArticle(Article * article, unsigned int nbrArt,FILE * file)
|
||||||
{
|
{
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
printf("%u\n", nbrArt);
|
|
||||||
float prixTot=0;
|
float prixTot=0;
|
||||||
fprintf(file,"\n|---------------------------------------------------------------------------------------------|\
|
fprintf(file,"\n|---------------------------------------------------------------------------------------------|\
|
||||||
\n| Designation | prixHTVA | Quantite | 10%% | prixTVAC |");
|
\n| Designation | prixHTVA | Quantite | 10%% | prixTVAC |");
|
||||||
|
|
Loading…
Reference in New Issue