linked list search question?
ok so I'm trying this thing, where I store fractions in a structure and put the structures into a linked list. THen I display them backwards. THIS WORKS PERFECTLY. BUT after displaying when I try to search a fraction on that linked list, it doesn't find it no matter what as my linked list only checks the last node.
So QUESTION: Could this be because when I display it, I change the place of the node somehow. If so how can I fix it. If not, what else could be the issue.
PS I'm doing this in assembly but C++ logic will totally work. Any suggestion??
Thanks :)
OHHH never mind you guys, I just had a miscount for the stack pointer bytes. missed 2 bytes so it gave me weird addresses instead of the actual values.
Thanks you all!! :)