| Author |
Message |
Versetti Novice

Gender: Joined: Jan 05 2004 Posts: 54 Offline
|
|
| Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Fri Jan 09, 2004 11:13 pm Post subject: |
 |
|
|
|
Why don't you just use the ANSI list datatype? _________________ This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him. |
|
| Back to top |
|
 |
-Smong- Guest
Offline
|
|
| Back to top |
|
 |
Versetti Novice

Gender: Joined: Jan 05 2004 Posts: 54 Offline
|
Posted: Sun Jan 11, 2004 9:32 pm Post subject: |
 |
|
|
|
| Cyan~Fire wrote: | | Why don't you just use the ANSI list datatype? |
I nevered used it but if it is a better way I would. |
|
| Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: 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. |
|
| Back to top |
|
 |
Versetti Novice

Gender: Joined: Jan 05 2004 Posts: 54 Offline
|
Posted: 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. |
|
| Back to top |
|
 |
ExplodyThingy Server Help Squatter
Age:39 Gender: Joined: Dec 15 2002 Posts: 528 Location: Washington DC Offline
|
Posted: 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. _________________ There are no stupid question, but there are many inquisitive idiots.
Loot
Dr Brain> I hate clean air and clean water. I'm a member of Evil Conservitive Industries |
|
| Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: 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  |
|
| Back to top |
|
 |
Mine GO BOOM Hunch Hunch What What

Age:42 Gender: Joined: Aug 01 2002 Posts: 3616 Location: Las Vegas Offline
|
Posted: 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. |
|
| Back to top |
|
 |
|