From: Fabio Miranda Hamburger <fabmirha@ns.isi.ulatina.ac.cr>
To: Glynn Clements <glynn.clements@virgin.net>
Cc: b klein <b_klein1@yahoo.com>, linux-c-programming@vger.kernel.org
Subject: Re: Graphs: Arbitrary Dijkstra's algorithm implementation
Date: Wed, 17 Dec 2003 12:04:02 -0600 (CST) [thread overview]
Message-ID: <Pine.LNX.4.44.0312171202080.27449-100000@ns.isi.ulatina.ac.cr> (raw)
In-Reply-To: <16351.54084.442280.424455@cerise.nosuchdomain.co.uk>
HI Glynn.
I thought You were out of linux-c-programming.
> > im a beginner here so please say if i do something off
> > topic.
> > i tried to set
> > #define NODES 8
> > and then(i hope this is right) i changed the
> > constructor:
> > grafo(void) //inicializa la matriz de costos y los
> > > vectores temporales
> > > {
> > > //for (int i=1; i<=7; i++) was
> > > //for (int j=1; j<=7; j++)
> > now
> > for (int i=1; i<=NODES; i++) was
> > for (int j=1; j<=NODES; j++)
> > costos[i][j]=10000;
> If costos has dimensions costos[NODES][NODES], the above is invalid;
> when i == NODES or j == NODES, you are exceeding the bounds of the
> array. If an array has size N, the valid indices range from 0 to N-1
> inclusive; N isn't a valid index
Fixed.
Still not working.
prev parent reply other threads:[~2003-12-17 18:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-16 15:06 Graphs: Arbitrary Dijkstra's algorithm implementation Fabio Miranda Hamburger
2003-12-16 20:46 ` b klein
2003-12-17 3:53 ` Glynn Clements
2003-12-17 18:04 ` Fabio Miranda Hamburger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.44.0312171202080.27449-100000@ns.isi.ulatina.ac.cr \
--to=fabmirha@ns.isi.ulatina.ac.cr \
--cc=b_klein1@yahoo.com \
--cc=glynn.clements@virgin.net \
--cc=linux-c-programming@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).