comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: allocating data to different array on each loop step
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: allocating data to different array on each loop step [message #46251] Mon, 14 November 2005 00:49 Go to previous message
Paolo Grigis is currently offline  Paolo Grigis
Messages: 171
Registered: December 2003
Senior Member
snfinder@naver.com wrote:
> Thank you Coyote~ ^^
>
> But If the number of loop step is so large,
> array1 = *arrays[0]
> array2 = *arrays[1]
> ...
> array24 = *arrays[23]
> this is very unefficient.
Do you really want to have 24 differently named arrays?
You don't need named arrays to access the data stored
in your pointers to arrays, it's enough to write
something like

(*arrays[k])[i]

Ciao,
Paolo

>
> I want to excute this automatically.
>
> And I can't know the number of loop step before end of all steps.
> um...ok can find out it if I excute loop twice......ok..
>
> Thank you ~
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Access to title object in IDLgrAxis
Next Topic: subscripting arrays with dim > 1

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:15:41 PDT 2025

Total time taken to generate the page: 0.00429 seconds