Announcement

Collapse
No announcement yet.

Link lists?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Link lists?

    Hello,


    I was wondering if someone could show me an example of a linked
    list using only powerbasic keywords. I have been thinking about
    this for some time and I'm a bit unsure on how to allocate an
    array for this purpose. As I understand it, each link contains
    a pointer to the next and possibly even to the previous link. If
    you redim an array, the memory block used for the list could move
    in memory an thus invalidate all you pointers... ?



    ------------------
    Cheers

  • #2
    The December, 1998 (DOS) and April 1999 (Windows) editions of "BASICally Speaking" contained articles and code on doing exactly this.

    The code is all public domain and available at the IMS web site in the archives.

    The text of the articles is available by purchasing reprints from IMS; see www.infoms.com and follow the "BASICally Speaking" links.



    ------------------
    Michael Mattias
    Racine WI USA
    [email protected]
    Michael Mattias
    Tal Systems (retired)
    Port Washington WI USA
    [email protected]
    http://www.talsystems.com

    Comment

    Working...
    X