From: limor_ru@walla.co.il (lolo27)
Subject: Re: how to declare an array of pointers
Date: 1 Nov 2003 14:44:09 -0800
Date: 2003-11-01T14:44:09-08:00 [thread overview]
Message-ID: <92bfc3dd.0311011444.3fe8871f@posting.google.com> (raw)
In-Reply-To: GGSob.59310$275.144816@attbi_s53
tmoran@acm.org wrote in message news:<GGSob.59310$275.144816@attbi_s53>...
> >my question is:
> >is Array_Hash_type an array of pointers
> WYSIWYG.
> > type Array_Hash_type is array (10..HASH_SIZE) of ptr_array;
>
> So Array_Hash_type is an array of "ptr_array"s. Since
> > type ptr_array is
> > record
> ...
> a ptr_array is a record, not a pointer. So Array_Hash_type is
> an array of records (which may contain pointers, etc).
>
> >if not then how can i define one i need an example
> Assuming that "p_node" (which you didn't define in your posting)
> is an access type (aka pointer), then
> type Array_Hash_type is array (10..HASH_SIZE) of p_node;
> would be an array of pointers.
thanks now i have to change all my program
i dont understand how do i access an elemnt?
Array_Hash_type(index).something
i know i have to allocate each elemnt but how can i access elment
with an index after he is allocated.
can you post me example?
where can i find example on the net?
thanks a lot
next prev parent reply other threads:[~2003-11-01 22:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-01 16:18 how to declare an array of pointers lolo27
2003-11-01 18:10 ` tmoran
2003-11-01 22:44 ` lolo27 [this message]
2003-11-01 23:30 ` Jeffrey Carter
2003-11-02 0:04 ` tmoran
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox