Page 1 of 1

LINKED LISTS IN FREEBASIC?

Posted: Sat Aug 09, 2008 5:55 pm
by T'lon Nanaki
does anyone know if it's possible to create a linked list in FREEBASIC

I'd like to use a user defined type such as:
TYPE LL
DIM AS LL PTR NODE
DIM AS (MY OTHER INFO HERE)
DECLARE SUB NEWNODE
ECT.
END TYPE
DIM AS LL LINKLIST

LINKLIST.NEWNODE
ECT,ECT,ECT, and soforth

Im not sure if what i got here could work or if making a linked list is even possible or what?

Posted: Sat Aug 09, 2008 7:50 pm
by MystikShadows
Indeed, freebasic handles linked lists. You can have a sample code right here http://www.freebasic.net/forum/viewtopic.php?p=90105

Hope it helps.

Posted: Sat Aug 09, 2008 8:43 pm
by sid6.7
moved to correct forum...