struct sGNom { char *art; char *nom; char *adj; }; struct sPhrase { struct sGNom * sujet; char * verbe; struct sGNom * complement; }; struct sGNom * creerGNom( char *art, char *nom, char *adj ) { struct sGNom * gns; gns = malloc( sizeof( struct sGNom ) ); gns->art = art; gns->nom = nom; gns->adj = adj; return gns; } void listeGNom( struct sGNom * gns ) { printf("art ); printf("NOM=%s ", gns->nom ); printf("ADJ=%s ", gns->adj ); printf(">"); } void enregistrerPhrase( struct sPhrase * sph, struct sGNom * suj, char * vb, struct sGNom * comp ) { sph->sujet = suj; sph->verbe = vb; sph->complement = comp; } void listePhrase( struct sPhrase * sph ) { printf("Phrase::"); listeGNom(sph->sujet); printf("< VERBE:%s",sph->verbe); listeGNom(sph->complement); printf("\n"); }