Home > Back-end >  In the sequence clues HuaEr octree algorithm using stack sequence
In the sequence clues HuaEr octree algorithm using stack sequence

Time:10-08

Why use the stack is order to save a pointer to a node traversal process need to go back to the back to free (st) free function not only can be used to dynamically allocated memory? The stack is not dynamically allocated memory, using order ah

CodePudding user response:

Write wrong
Next question

CodePudding user response:

This is a pseudo code,
Releasing the stack space of st, StackInitiate (& amp; St) and free (st),
Stack store is just a pointer, and no corresponding free,

CodePudding user response:

StackInitiate function code?
The parameter StackInitiate (& amp; St) is the secondary pointer, the estimate function is dynamically allocated memory stack size is dynamic ((order), so finally to release the memory,
  • Related