I understood your explanation anduril. Many thanks.
I copied a code from the videos I watched (a simpler version of a linked stack):
/*
* File: stack.h
* Author: thames
*
*...
Type: Posts; User: thames
I understood your explanation anduril. Many thanks.
I copied a code from the videos I watched (a simpler version of a linked stack):
/*
* File: stack.h
* Author: thames
*
*...
wow thank you for the incredible effort to explain me stacks with linked lists. I'm also watching some videos on youtube about the subject.
Now I'm a bit lost. How can the head be the top (the first popped element) of the stack?
I think I understood this problem: I'm passing NULL as an element for popping and pushing. If you look to the usual implementation of the stacks, this is incorrect since you need to pass the...
Good afternoon. I'm trying to debug a stack. I think the problem has something to do with free(old_element) and free(data) but I tried to do some modifications (commenting one of them) without...