Hello all it's been a couple of weeks but wuts up ?? well anyway here is my problem... I have a program that i need to read from a string a set of number for ex.(1*2-3/4) i want the string to work like a simple calculator. I have the code to work for the + and - for the string but i cann't get the * or the / to work. by the way i need to keep these recursive functions. here is my code that works....

p.s i think i need else if statements maybe but not sure... any help will be aprrieciated...Code:#include <iostream.h> int eval(char A[], int n) { if(n == 1) return (int (A[0])- int('0')); if(A[n-2] == '+') return eval(A,n-2) + (int (A[n-1]) - int('0')); else return eval(A, n-2)- (int (A[n-1]) - int('0')); } void main() { char A[20]; int n=0; cout << "Enter a String: "; int i=0; A[0]=cin.get(); while(A[i] != '\n') { i++; A[i]=cin.get(); } n=i; for(i =0; i < n; i++) cout << A[i]; cout << endl; cout << eval(A,n) << endl; }