goodmorning,
I'm trying to use a stack in my program.
However somethings go's wrong when I declarete my stack in my class the following way:
-- stack<int> stackname;
I recieve the following errors.
-- syntax error : missing ';' before '<'
-- error C2501: 'stack' : missing storage-class or type
specifiers
-- error C2059: syntax error : '<'
-- error C2238: unexpected token(s) preceding ';'
I used #include <stack> so that can't be the problem.
Does anybody know what I did wrong?
Thanks,
Martini
I'm trying to use a stack in my program.
However somethings go's wrong when I declarete my stack in my class the following way:
-- stack<int> stackname;
I recieve the following errors.
-- syntax error : missing ';' before '<'
-- error C2501: 'stack' : missing storage-class or type
specifiers
-- error C2059: syntax error : '<'
-- error C2238: unexpected token(s) preceding ';'
I used #include <stack> so that can't be the problem.
Does anybody know what I did wrong?
Thanks,
Martini