Hello frankie,
First a big -Thank You-,
i tried a tutorial, changed some parameters
and ended in total confusion..
The "Begining"/"Ending" stuff was a test to see
if the pointers work as imagined
and should lead to a delete routine ("loeschen" = "delete"),
which after your contribution seemed (very) easier to be build.
Here´s what i made out of it,
hope there are no more bugs ..
ps:
Now that you brought the term "insert in the middle",
i´m thinking how that could be realised.. ?
There are 2 interesting possibilities:
1st - Insert Item by index,
2nd - Insert Item before/after Item..
When thinking about the indexing,
i wondered how that should be done..
..counting via global variable
..a loop iterating each time through the list
..or even using an array ??
Do you know if there´s a standard / better solution ?
pss:
Please let me know what you mean by "plain" Style,
the basic framework of this sample is out of a tutorial,
i just changed the pointer-handling
because the original based all functions on a pointer which used to be the actual Item
really confusing and only working linear..
(no chance to add an item, delete, add again..)
Thanks,
Tino