Then ..would std::stack be a better way to implement stacks ?..the name seems to suggests so...and does it behave identically to std::vector ?
Type: Posts; User: manasij7479
Then ..would std::stack be a better way to implement stacks ?..the name seems to suggests so...and does it behave identically to std::vector ?
First of all , I can't understand the error message.
error: invalid initialization of non-const
reference of type ‘stack&’ from a temporary of
type ‘std::vector<sub, std::allocator<sub> >
...