I have below a header file for a stack structure. what I don't understand is this error it is jamming at me:
ISO C++ forbids declaration of 'Stack' with no type
Here's the code :
#include <stdexcept>
class Element;
class Stack{
public:
Stack():first(0){}; //constructor
~Stack(); //destructor
void push(int d);
int pop()throw(length_error);
bool empty();
private:
Element *first;
Stack(const& Stack){}; //copy constructor
Stack& operator = (const& Stack){}; //assignment operator..
};
does anyone have a clue what the error means?