fork(1) download
  1. #include <iostream>
  2.  
  3. template <class T>
  4. struct Node {
  5. T item;
  6. Node *prox;
  7. };
  8.  
  9. template <class T>
  10. class Pilha {
  11. private:
  12. int tamanho;
  13. Node<T> *topo;
  14.  
  15. public:
  16. Pilha() {
  17. this->topo=NULL;
  18. Node<T> *novoNo = new Node<T>();
  19. this->tamanho=0;
  20. }
  21. };
  22.  
  23. int main() {
  24.  
  25. return 0;
  26. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
Standard output is empty