0
Plz ,i need help .This void does not work well whether it is present or not. Outputs are not
void rechercher(int code){ int d=0; printf("Entrez le code du client que vous recherchez\n"); scanf("%d",&code); FILE*F; F=fopen("client.txt","r"); do { fscanf(F,"%d%s%s%s%d%d%d%s",&c1.id,&c1.nom,&c1.prenom,&c1.adresse,&c1.date.jour,&c1.date.mois,&c1.date.annee,&c1.tel); if(code==c1.id){ printf("il existe"); printf("id=%d\nnom=%s\nprenom=%s\nadresse=%s\n la date_nais:%d/%d/%d\ntel:%s" ,c1.id,c1.nom,c1.prenom,c1.adresse,c1.date.jour,c1.date.mois,c1.date.annee,c1.tel); } else printf("il n'existe pas"); } while(!feof(F)); fclose(F); }
1 Resposta
+ 3
You are receiving code from the client even when you have received it from calling statement.
It will give an error of multiple declaration.