[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What's wrong with this dynamic matrix allocation
From: |
Paul E. Johnson |
Subject: |
Re: What's wrong with this dynamic matrix allocation |
Date: |
Fri, 19 Mar 1999 17:01:11 -0600 |
"Marcus G. Daniels" wrote:
>
> >>>>> "PJ" == Paul E Johnson <address@hidden> writes:
>
> PJ> int Dimensionality[NOFSPACES]
> PJ> for(s=0;s<NOFSPACES;s++)
> PJ> for(i=0; i < Dimensionality[s] ; i++)
>
> Dimensionality's last element is NOFSPACES - 1, and you're asking for
> the next one.
>
Thanks for the light speed reply.
But I don't see what you mean.
Since the index on the outside loop stops at s<NOFSPACES, I think that
means it quits at NOFSPACES-1. So I don't see how
Dimensionality[NOFSPACES] ever gets accessed.
--
Paul E. Johnson email: address@hidden
Dept. of Political Science http://lark.cc.ukans.edu/~pauljohn
University of Kansas Office: (785) 864-9086
Lawrence, Kansas 66045 FAX: (785) 864-5700
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.
- What's wrong with this dynamic matrix allocation, Paul E. Johnson, 1999/03/19
- Re: What's wrong with this dynamic matrix allocation, Marcus G. Daniels, 1999/03/19
- Re: What's wrong with this dynamic matrix allocation,
Paul E. Johnson <=
- Re: What's wrong with this dynamic matrix allocation, Marcus G. Daniels, 1999/03/19
- Re: What's wrong with this dynamic matrix allocation, Paul E. Johnson, 1999/03/19
- Re: What's wrong with this dynamic matrix allocation, Marcus G. Daniels, 1999/03/19
- Interesting new GCC warning (was Re: What's wrong with this dynamic matrix allocation, Paul E. Johnson, 1999/03/19
- Re: Interesting new GCC warning, Ken Cline, 1999/03/19
- Re: Interesting new GCC warning (was Re: What's wrong with this dynamic matrix allocation, Marcus G. Daniels, 1999/03/19
- Re: Interesting new GCC warning (was Re: What's wrong with this dynamic matrix allocation, Theodore C. Belding, 1999/03/19