Posts by Lucas Arruda • 11 points
1 post
-
1
votes1
answer1909
viewsA: Print values from a stack
The problem is this: How you initialize the attribute size class pile as 1 and every time you insert it into the stack (push()) is incremented by 1 to the size attribute, so if you add 5 elements…