Mario wrote:
> i´m searching for a good stack solution also, but is there no stack
librarie
> in the standart libraries like the string class?
> and if there is a stack class how to use
#include <list>
class Stack {
public:
void push(int);
int pop();
private:
std::list<int> m_ints;
};
Notice your client code should not know there is a std::list<> in there.
Clients should only push and pop the stack. Implementation of push and pop
are up to you, but they will probably immediately delegate to std::list<>
methods.
--
Phlip
http://industrialxp.org/community/bi...UserInterfaces