I have number arrays(int a) and operator arrays(char b) seperately. And also I can combine them both into one another integer array(operator characters will be transfered there with ASCII codes). It doesn't matter how the arrays are. I can do it in multi ways.
The problem is; you know aritmethic operations can be fulfilled by stacks. Just like 7+(9-3)*3 etc. There are operator priorities just as '*' prior to '+'. So how can I get them into stack operation so that it's going to give the correct answer 25.
It's just a basic stack implementation. Thanks in advance.
(Firstly I have to turn that operation(7+(9-3)*3) into postfix struct. Just like (7 9 3 - 3 * +)