stacks

pls help me deal with this program pls. im really new to programming and i cant do it by myself..
pls help.
all i need to do is just simply program arithmetic(i mean, a program that would solve addition, subtraction,multiplication and division) using stacks.. pls help me..
thanks a lot.
What code have you got so far?

The general way-to-go about things around here in these forums is not to ask for the whole program already coded for you - it's to ask help about what you don't understand, and to correct your errors so that you actually learn from it :)

So, just share the code you have so far.

And, are you using functions to do the arithmetic operations or are you just doing them in the main() function?
im doing them in the main functions..
this is all ive got..

int main(){
int num1,num2,s,sub,mul,div;
stack<int> s;
s.push(num1+num2);
}

----this is all ive got. pls help me..

Topic archived. No new replies allowed.