Envoyé par
FunK92
Salut,
A quel niveau sa coince?
Quel est le problème précisément?
Peut tu nous détailler les structures complète ?
la structure de la liste est:
1 2 3 4 5 6
|
typedef struct noeud
{
char nom;
struct noeud * suivant;
}; |
sa coince au niveau de l'initialisation des cases du tableau "graphe":
graphe[i]=initialisation();
, l'appel de la fonction "ajoutnoeud":
graphe[i]=ajoutnoeud(graphe[i],noun);
et l'appel du champ nom:
printf("Pour entrer les successeurs de: %c tapez 1, sinon tapez 0\n",graphe[i]->nom);
.
Les erreurs sont:
1 2 3 4
| no match for 'operator=' in '*((+(((unsigned int)i) * 8u)) + graphe) = initialisation()'
candidates are: noeud& noeud::operator=(const noeud&)
cannot convert `noeud' to `noeud*' for argument `1' to `noeud* ajoutnoeud(noeud*, char)'
base operand of `->' has non-pointer type `noeud' |
Partager