I'm fairly new to C++, but you may try:
#include <stack>
Goodluck!
In C++, any declaration other than '#include <stack>' will have an error that says it is a deprecated library. Either of the other two will probably work in C.
I believe your problem is that you have no 'main' statement. You don't even declare a stack, you just start pushing values on it.
Try initializing a stack in a main statement
-
#include <stack>
-
using namespace std;
-
int main() {
-
Stack intStack;
-
return 0;
-
}
-
Probably not exactly like that - they had $15 table toppers tonight, but if you google '#include <stack>' I'm sure you can figure it out.