🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Tableau: différence entre pile et tas

#15277
From: Antoine Leca
Date: Fri, 30 Sep 2005 16:10
20 lines
2124 bytes
En <news:433d4cf2$0$7841$8fcfb975@news.wanadoo.fr>, Harpo va escriure:
> Le programme se plante dans le main.c, ligne 47 :
>          printf("%d\n", distTable[inc][inc2].id);
> au premier passage sur cette instruction.
>
> distTable est utilis�e comme une table � 2 indices

Que es ac�?

> alors qu'elle est d�clar�e comme un tableau de pointeurs
> vers des trucs.

Oui. Et utilis�e comme tableau de tableaux, donc cela concorde pas mal.

Par contre, l'allocation et la post�rieure initialisation du contenu du
tableau interm�diaire (celui qui contient les pointeurs)... est difficile �
trouver, je dirais.


Antoine
Technical Details
Message-ID: <dhjo23$a9i$1@shakotay.alphanet.ch>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!nntp-server.pubsub.com!news.imp.ch!news.imp.ch!80.83.46.147.MISMATCH!news.alphanet.ch!alphanet.ch!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> <433d4cf2$0$7841$8fcfb975@news.wanadoo.fr>

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!news3.google.com!news.glorb.com!nntp-server.pubsub.com!news.imp.ch!news.imp.ch!80.83.46.147.MISMATCH!news.alphanet.ch!alphanet.ch!not-for-mail
From: "Antoine Leca" <root@localhost.invalid>
Newsgroups: fr.comp.lang.c
Subject: Re: Tableau: différence entre pile et tas
Date: Fri, 30 Sep 2005 18:10:43 +0200
Organization: Posted through ALPHANET (http://www.alphanet.ch/)
Lines: 21
Sender: antoinel@143.red-217-127-250.staticip.rima-tde.net
Message-ID: <dhjo23$a9i$1@shakotay.alphanet.ch>
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> <433d4cf2$0$7841$8fcfb975@news.wanadoo.fr>
NNTP-Posting-Host: 143.red-217-127-250.staticip.rima-tde.net
Mime-Version: 1.0
Content-Type: text/plain;
 charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: shakotay.alphanet.ch 1128096644 10546 217.127.250.143 (30 Sep 2005 16:10:44 GMT)
X-Complaints-To: usenet@alphanet.ch
NNTP-Posting-Date: Fri, 30 Sep 2005 16:10:44 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506