hi...
please help me...I am in a hurry!
I have some error in my code, I must make stack whit linked list...my class inherits from a class called Collection...
I write errors whit their lines
1) error: 'Stack' is not a template
class Stack : public Collection<TYPE>
Stack<TYPE>::Stack()
2) error: explicit qualification in declaration of 'Stack Stack()' & 3)error: return type 'struct Stack' is incomplete
Stack<TYPE>::Stack()
4) error: expected initializer before '::' token
TYPE Stack<TYPE>::remove() throw(std::string)
void Stack<TYPE>::add(const TYPE& value)
TYPE Stack<TYPE>::getHead() const throw(std::string)
TYPE Stack<TYPE>::getTail() const throw(std::string)
void Stack<TYPE>::print() const
5)error: 'object' was not declared in this scope & error: 'check' was not declared in this scope
but i declared in my class
I have another program like this, but I don't have problem there!
It looks like you have forgot to put something like template <typename TYPE> above the class definition. You also need it above the member function definitions that is not defined inside the class definition.