Getting a strange error in my RPN Calculator program that uses array implementation of a stack

SOLVEDjavascript:editbox1.editCancel()
Last edited on
bool pop (DataType & parameter);
Here you told that pop function get one argument.

rpnStack.pop();
Here you ar calling it without providing one.

Find logic errror in this yourself.
since line 45 (and 63) does nothing you cannot store more than 2 elements.

Even if the value of capacity would have changed it wouldn't change data.
You have to create a new array with the new size and copy the old data
Topic archived. No new replies allowed.