Infix notation to Reverse Polish Notation


/ Published in: C++
Save to your folder(s)

The bugged version: Somehow, it prints random characters to me like [] except the spaces filled in and other accented letters when I input more parenthesis and longer input.

How to use: example->
input:
3
1+2
(1+2)*(6-2)
6-7*(9*10)/8

output:
1 2 +
1 2 + 6 2 - *
6 7 - 9 10 ** 8 /

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.