People, I'm doing the implementation of a stack with pointers in C ++ and I have the following code for now:
template <class T>
struct Node {
T item;
Node *prox;
};
class Pilha {
private:
int tamanho;
Node *topo;
public:
Pilha() {
this->topo=NULL;
this->tamanho=0;
}
In the top private attribute, the Node type is not being recognized within my Stack class. The eclipse returns the following error: Type 'Node' could not be resolved .
What can it be? Thank you!