STL stack inside of loop
I am implementing a stack inside of a while loop and I am getting
undefined behavior when I access a one element stack with the top()
function to get the value and then subsequently pop() that value off the
stack. Is there a specific reason this is happening?
No comments:
Post a Comment