I have an assignment to do and I don't know what the term dynamic stack means. All I was given was the header and the rest is up to me.
I also have no idea what top() is supposed to do. Read the value of the top of the stack?Code:class Stack { public: Stack(); Stack(const Stack &stck); ~Stack(); void push(int number); void pop(); int top() const; bool isEmpty() const; int size() const; };
Can someone write me some code how to make a stack of unknown size (I'm assuming that's what dynamic means)? I can write a "normal" stack but have no idea how to do a dynamic one.