Thread: pointer error
View Single Post
Old 07-14-2006, 08:00 AM   #11 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,726
redhead is on a distinguished road
Since you're using single linked lists, it is only possible to search forward, which means in your add function you will see the item at hand, and the next one, which most likely will be either NULL or the newly added item.

I must boldly admit, I havn't taken the time, to closely read your code, so I have no generel knowledge of what exactly it is you're trying todo...
If I do get the time, I might try and come up with my solution to your problem during this weekend.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote