diff --git a/TP/TP1.md b/TP/TP1.md index a8cc9e6..1e7a5ec 100644 --- a/TP/TP1.md +++ b/TP/TP1.md @@ -72,7 +72,7 @@ Ainsi que des fonctions les utilisant : ``` int tailleM(maillon *m){ //Renvoie la taille d'une liste int res=0; - while(!listeVide(m)){ + while(m!=NULL)){ res++; m=m->suivant; } diff --git a/TP/fonctionVisuelGraphe.c b/TP/fonctionVisuelGraphe.c index e088802..87ed6ee 100644 --- a/TP/fonctionVisuelGraphe.c +++ b/TP/fonctionVisuelGraphe.c @@ -13,7 +13,7 @@ void visuelGraphe(graphe g){ int i,j; int x,y; char* nV=malloc(2); - *nV='1'; + *nV='0'; *(nV+1)='\0'; int* cX=calloc(g.ordre,sizeof(int)); int* cY=calloc(g.ordre,sizeof(int)); @@ -28,6 +28,8 @@ void visuelGraphe(graphe g){ } + +//Version si le graphe est une matrice d'adjacence for(i=0;ivaleur],cY[read->valeur]); + read=read->suivant; + } + } +*/ Touche(); FermerGraphique();