C++: Program converting postfix to evaluation
<p>How can I convert the char in the array into an integer?</p>

<p>Ignore lines 5-100 it is just my stack. 
<a href="http://ideone.com/KQytD" rel="nofollow">http://ideone.com/KQytD</a> </p>

<p>Scroll down output #2 worked properly but output #3 did not. Some how when I pushed the value back into the stack and when I popped it it had the +'43' because of the ASCII and I cannot seem to get it into a regular integer value so I can do these operations easily.</p>

<p>line 116 puts input into char postfix. NOTE: input must be in postfix notation line 117 puts the single integer value into final after it has run through the function.</p>

<p>convertPostfixToEvaluation works as such: I scroll through each index of postfix until I read in '=' then I output the total/sum. The first if statement pushed the operands (0-9) into a stack. The second if statement if it reads in an operator then it attempts to do the operation as such in lines 134-158. After the if statements I increase the index value by 1 so it can scan the entire array.</p>

<p>The issue lies within the switch where I try adding,subtracting,multiply, or dividing more than 3 operands. so the 3rd one i believe is still has the value (+43 because of the ASCII).</p>

<p>My outputs(on the bottom of my program) show what the awkwardness is.</p>

<p>The cut to the chase issue. Issue converting char to int the second time around.</p>
