Implementing a simple linked list
| Mon, 2005-06-06 10:12 | |
|
Hello
I am trying to add a functionality to an application that I am writing in Symbian C++. I had earlier implemented that functionality in C and it made used of a linked list. A typical node of the linked list looked like this - struct stream_items { Â Â Â char data[150]; Â Â Â char id[20]; Â Â Â struct stream_items* nextitems; Â Â Â struct stream_items* previtems; }; I then dynamically created nodes of this type and made up a doubly linked list. How do I create such a thing here in Symbian C++? I just read Doubly Linked Lists Overview in the SDK help. Is that the way I do it (I felt it was a bit complex) or can I create the link list as I used to be doing in C? Please do help me with a few tips. Thanks for all the help Warm Regards Johnsy |
|






Alternatively the arrays in symbian are dynamic so you could use those instead
Forum posts: 1379
didster
Forum posts: 18
HI,
I have a Basic Dought that can we implement a binary tree in symbian... i have found single and doubly linked list description. but i have no info regarding the trees... can u help me out in this.....iam using the 7.0s version
Forum posts: 278
about the tree implementation you can try to use the TBtree class.