Question
IN C: My convertInToPost function is able to read white spaces, prioritize operators, balance parentheses, and read single digit numbers all using if-else statements. But
IN C: My convertInToPost function is able to read white spaces, prioritize operators, balance parentheses, and read single digit numbers all using "if-else" statements. But I do not know how I will be able to have multi digit numbers be appended to postfix.
What condition should my "if statement" be within my convertInToPost function if I want it to read multi digit operands from an infix string?
If someone could help me with this, it would be most appreciated.
What I would like it to do: (all white spaces are intentional)
given infix: 2-(4*11+(6/7^8)*9)*200 postfix: 2 4 11 * 6 7 8 ^ /9 * + 200 * -
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started