Joe Wilson

Joe Wilson

  • NA
  • 7.8k
  • 432.7k

How can I change the mathematicalexpression in C++?

Oct 13 2014 4:09 AM
I mean I want to change the user mathematical expression which is post fix to infix, the main point in this question is the algorithm of the program ,I want to start to analyse the post fix mathematical expression from the end of expression which start with mathematical operators .
 
Note : During changing the post fix to infix pay attention to operators priority.
 
Example: 
The user post fix expression :   k a b + c / t - *
the infix expression after changing :   k * (a + b) / c - t

Answers (1)