Hey people! I've been a frequent reader of these board, one of the best when it comes to C programming. I'm a newbie and hopefully someday I'll become as good as some of you.
I have to write a code using stacks and arrays to add very big numbers. I already developed the algorithm for the whole program but the stack commands dont seem to work. (Stack new concept)
Our teacher explained the theory behind it very well, but gave us no code whatsoever.
How can I initialize a simple Stack of Integers, just for pop and push commands?
I thought of this but won't compile either
Thanks a lot for your time!Code:Stack stack1, stack2; //to push: stack1.push(n); //to pop: stack1.pop();