infix to prefix

how can i turn a infix string input and convert it into prefix? ive read some stuff online and it doesnt really make sense to me. if anyone could explain the method to do it it would be greatly appreciated.

swap
@anup30
how do i do a swap?
closed account (28poGNh0)
@andrewthecoder

can give us an exemple ?
@techno01

like an input ( A + B ) - C
in string manipulation, you can,
GoCarlsenNow --> CarlsenGoNow --> PleaseCarlsenGoNow etc.
string s = " ( A + B ) - C";
to interchange B and C, find their position (i,j) with a for loop. then swap s[i] and s[j];
closed account (28poGNh0)
@andrewthecoder
This is not a good exemple
Topic archived. No new replies allowed.