🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fr.comp.lang.c
Article #15211

Re: Tableau: différence entre pile et tas

#15211
From: dab
Date: Wed, 05 Oct 2005 09:02
25 lines
2533 bytes
Je pense avoir maintenant compris ce que fait votre code mais il me
semble qu'il y a une erreur ici:
 typedef  t_sorted_grid_point TdistTable[NB_NEIGHBOR][NB_NEIGHBOR];

Ca devrait plutot être:
 typedef  t_sorted_grid_point
TdistTable[NB_MAX_GRID_POINT][NB_NEIGHBOR];

surtout que vous faites derriere ceci:
TdistTable* pdistTable =
malloc(NB_MAX_GRID_POINT*NB_NEIGHBOR*sizeof(t_sorted_grid_point));

Ensuite, faut que je mette les idées au clair, mais je pense enfin
savoir d'ou vient mon erreur (grâce à vous d'ailleurs même s'il m'a
fallu beaucoup plus de temps pour comprendre ce que vous écrivez).
Pour le vérifier, je dois essayer avec quelque chose qui ressemble à
ce que vous proposez.

Sinon,  je vois pas en quoi mon code est compliqué. L'habitude doit y
être pour beaucoup mais j'ai beaucoup plus de mal avec des #define au
milieu d'une fonction.

En tout cas merci.

David
Technical Details
Message-ID: <1128500995.856958.152440@o13g2000cwo.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!o13g2000cwo.googlegroups.com!not-for-mail
References: <1127923112.347881.79740@z14g2000cwz.googlegroups.com> <433c3502$0$17236$8fcfb975@news.wanadoo.fr> <1128062877.527491.168280@g49g2000cwa.googlegroups.com> <433d1e98$0$5409$8fcfb975@news.wanadoo.fr> <1128080997.753599.258340@g49g2000cwa.googlegroups.com> <mn.f3ba7d592302afb8.31483@laposte.net> <1128095986.321098.217870@g47g2000cwa.googlegroups.com> <mn.f44c7d59dde38f4f.31483@laposte.net>

Show Full Headers
Complete Article Headers
X-Google-Thread: f9822,9ee84542aed426f5
X-Google-Attributes: gidf9822,public
X-Google-Language: FRENCH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!o13g2000cwo.googlegroups.com!not-for-mail
From: dab@acri-st.fr
Newsgroups: fr.comp.lang.c
Subject: Re: Tableau: différence entre pile et tas
Date: 5 Oct 2005 02:02:19 -0700
Organization: http://groups.google.com
Lines: 26
Message-ID: <1128500995.856958.152440@o13g2000cwo.googlegroups.com>
References: <1127923112.347881.79740@z14g2000cwz.googlegroups.com>
   <433c3502$0$17236$8fcfb975@news.wanadoo.fr>
   <1128062877.527491.168280@g49g2000cwa.googlegroups.com>
   <433d1e98$0$5409$8fcfb975@news.wanadoo.fr>
   <1128080997.753599.258340@g49g2000cwa.googlegroups.com>
   <mn.f3ba7d592302afb8.31483@laposte.net>
   <1128095986.321098.217870@g47g2000cwa.googlegroups.com>
   <mn.f44c7d59dde38f4f.31483@laposte.net>
NNTP-Posting-Host: 213.244.27.2
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1128502944 26272 127.0.0.1 (5 Oct 2005 09:02:24 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 5 Oct 2005 09:02:24 +0000 (UTC)
In-Reply-To: <mn.f44c7d59dde38f4f.31483@laposte.net>
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.7.10) Gecko/20050717 Firefox/1.0.6,gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: o13g2000cwo.googlegroups.com; posting-host=213.244.27.2;
   posting-account=nfO__g0AAAB3e6qRD0Nckfeo-0DvYDH1