1
General / Pushing around things on the stack
« on: April 22, 2010, 07:07:09 pm »
Another question:
After seeing this: (http://gamedevgeek.com/tutorials/managing-game-states-in-c/), I noticed that the author of the article mentioned "pushing and popping" objects on the stack. What does that mean? How is it accomplished?
From what I understand, the stack is part of the memory used by the program, and objects can be loaded into it. When an object is "pushed" it moves up or down on the stack, right?
Thanks again!
-Cyrano
After seeing this: (http://gamedevgeek.com/tutorials/managing-game-states-in-c/), I noticed that the author of the article mentioned "pushing and popping" objects on the stack. What does that mean? How is it accomplished?
From what I understand, the stack is part of the memory used by the program, and objects can be loaded into it. When an object is "pushed" it moves up or down on the stack, right?
Thanks again!
-Cyrano