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

Home » Public Forums » archive » Re: pointer of pointer
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: pointer of pointer [message #48037 is a reply to message #48032] Wed, 22 March 2006 15:07 Go to previous message
steve is currently offline  steve
Messages: 19
Registered: March 1991
Junior Member
Hey Claire,

If you absolutely must have each element of "a" be an array of a
different length the path you started down will work.

You can allocate the different lines like this:

a = PtrArr(n)
a[0] = Ptr_New(IntArr(lineSize))

After you have allocated the space, you can set an element like this:

(*a[n])[lineElement] = 0

Just keep in mind that doing this is going to be slow because pointers
are slow. More information on pointers can be found at
http://www.dfanning.com/misc_tips/pointers.html

Hope this helps,
Steve
[Message index]
 
Read Message
Read Message
Previous Topic: extracting numbers
Next Topic: SVD for 3D

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

Current Time: Tue Dec 02 09:01:18 PST 2025

Total time taken to generate the page: 2.24347 seconds