stacknumbers.h
line 4: You declare MAX as a
const int
stacknumbers.cpp
line 3. You declare MAX as a simple
int
. Both are in the global scope. You can't declare the same variable twice with different attributes.
Line 4
string top
What is this for? You have
int top
as a member variable.
Line 28: isEmpty is a function. You need () to call it.
Line 30: pop() is declared as type int, but doesn't return anything.
main.cpp
line 12: Your prompt says to enter 5 numbers, but you only input one.
You never instantiate your stack.
Your labels for the header and implementation file are reversed.
PLEASE USE CODE TAGS (the <> formatting button) when posting code.
It makes it easier to read your code and also easier to respond to your post.
http://www.cplusplus.com/articles/jEywvCM9/
Hint: You can edit your post, highlight your code and press the <> formatting button.