main.c: In function ‘saisircmp’:
main.c:30:6: attention : format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[20]’ [-Wformat=]
printf("saisissez votre nom : ");scanf("%s",&c.nom);
^
main.c:31:6: attention : format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[20]’ [-Wformat=]
printf("aisissez votre prenom : ");scanf("%s",&c.prenom);
^
main.c: In function ‘ajouterCompte’:
main.c:53:7: attention : passing argument 1 of ‘enregistre’ from incompatible pointer type [enabled by default]
enregistre(nv);
^
main.c:39:7: note: expected ‘struct cmp *’ but argument is of type ‘struct liste_compte *’
void enregistre(cmp *c)
^
main.c: In function ‘afficher’:
main.c:60:18: erreur: invalid operands to binary != (have ‘liste_compte’ and ‘void *’)
while(*temp!=NULL )
^
main.c:62:50: erreur: ‘liste_compte’ has no member named ‘prenom’
printf("prenom : %s \n nom : %s \n",*temp->prenom,*temp->nom );
^
main.c:62:64: erreur: ‘liste_compte’ has no member named ‘nom’
printf("prenom : %s \n nom : %s \n",*temp->prenom,*temp->nom );
^
main.c:63:47: erreur: request for member ‘date’ in something not a structure or union
printf(" date : %d / %d / %d \n",*tete->date->jour,*tete->date->mois,*tete->date->annee );
^
main.c:63:65: erreur: request for member ‘date’ in something not a structure or union
printf(" date : %d / %d / %d \n",*tete->date->jour,*tete->date->mois,*tete->date->annee );
^
main.c:63:83: erreur: request for member ‘date’ in something not a structure or union
printf(" date : %d / %d / %d \n",*tete->date->jour,*tete->date->mois,*tete->date->annee );
^
main.c: Hors de toute fonction :
main.c:68:8: attention : return type of ‘main’ is not ‘int’ [-Wmain]
void main(void)
Partager