Article View: alt.comp.lang.learn.c-c++
Article #340Re: BESOIN D'AIDE AVEC SUPER POINTEURS
From: Widder
Date: Sat, 05 Feb 2000 00:00
Date: Sat, 05 Feb 2000 00:00
39 lines
2162 bytes
2162 bytes
Premierment SVP excusey mon pour francais. I y a plus que dix ans, que
j'appris la langue pendant un an . Vous pouvez trouver ma proposition dans
le program enanglais.
SVP disez moi si c'esy vraiment la solution.
I this is not the soultion of the problem, please send a more detailed
description of the problem, perhaps this would help the to understand
better.
Johannes Widder
Sylvere.Cochelin@wanadoo.fr wrote in article <87i0rg$oea$1@wanadoo.fr>...
> J'aimerais savoir pourquoi ce programme ne marche pas.
> Il y a aucune erreur � la compilation et � l'execution, le prog bloque
sur
> mon super pointeur (spf). Je ne vois pas pourquoi.
> -Peut-�tre qu'il a mal �t� envoy� entre les fonctions, je ne sais pas.
>
> P.S. : Si vous pouviez me r�pondre assez rapidement, ca serait cool
> Avant Lundi par exemple.
>
> Merci d'avance
>
>
> struct FILM ** RECHERCH_F(char ZL[],struct FILM ** sp,int * cc)
> {
> int comp=1;
> for(;*sp&&(comp=strcmp(ZL,(*sp)->titre))>0;sp=&((*sp)->filmsuiv));
I think that this is at least one problem. You only continue searching if
there is still a next value in the chain and if the string zou look for and
the string in the chain is bigger but not smaller. strcmp returns values
different from Zero if the strings are not equal. So I suppose
strcmp(ZL,(*sp)->titre))!=0 might give better results.
> if(comp==0)
> *cc=1;
> else
Technical Details
Message-ID:
<01bf7023$297716e0$42b37ca4@Widder>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<87i0rg$oea$1@wanadoo.fr>Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII X-Google-Thread: f8d38,35edeee3f1ee15bd X-Google-Attributes: gidf8d38,public X-Google-Thread: f7a51,35edeee3f1ee15bd X-Google-Attributes: gidf7a51,public X-Google-Thread: 114592,35edeee3f1ee15bd X-Google-Attributes: gid114592,public From: "Widder" <widder@chollian.net> Subject: Re: BESOIN D'AIDE AVEC SUPER POINTEURS Date: 2000/02/05 Message-ID: <01bf7023$297716e0$42b37ca4@Widder> X-Deja-AN: 582041600 References: <87i0rg$oea$1@wanadoo.fr> X-Trace: news2.bora.net 949787569 164.124.179.66 (Sun, 06 Feb 2000 06:52:49 KST) Organization: Dacom NNTP-Posting-Date: Sun, 06 Feb 2000 06:52:49 KST Newsgroups: alt.comp.lang.learn.c-c++,borland.public.cpp.language,microsoft.public.vc.language