Questions tagged as 'stack'

1
answer

How do I return the number of items in a stack

****** I did this Exercise, but in the element count of the stack, the value of items is not appearing. Could you help me please **** #include <stdio.h> #include <stdlib.h> /* Um elemento da Pilha tem a chave, (e outros campos se...
asked by 04.07.2018 / 22:00
1
answer

Verify that the elements of stack 1 are the same as elements of stack 2, C ++

Well done! I need to do this part of the code in C ++ comparing if the elements of Stack 1 are the same as Stack 2 and if the number of elements are exactly the same. I do not know how to implement this part of the code. I created the variable i...
asked by 12.09.2018 / 05:02