I nevered used it but if it is a better way I would.
Cyan~Fire - Mon Jan 12, 2004 5:39 pm
Post subject:
Well ANSI C++ has a built in linked list. It's pretty useful (dunno why Catid didn't use it in MERVbot).
Check out the MSDN library page on it.
Versetti - Mon Jan 12, 2004 9:17 pm
Post subject:
ARGH I think this means I have too remake just about the whole Database part!!!!
..............I thought there was a stupid delete thingy that I can code into a funcation that will work :-I .......... Grrrrr
that MSDN does not explain it too good. O well gr.
ExplodyThingy - Mon Jan 12, 2004 9:38 pm
Post subject:
The delete thingy needs to get the previous item in the list and point it to the next tiem. You need to do this->last->next=next; and this->next->last=last; in order to point around the old node. Then simply delete it.
Cyan~Fire - Tue Jan 13, 2004 5:30 pm
Post subject:
Lol well you don't have to use it if you don't want to, I was just suggestion a pre-made one to help you out
Mine GO BOOM - Wed Jan 14, 2004 10:26 am
Post subject:
Remember, if you create the link via new, you'll need to free it via delete. If you create it via malloc, you'll need to free it via free. Don't mix the two methods.