I need to make a C++ program so that you can enter postfix statements and then calculate them for example
postfix infix answer
2 3 + = 2 + 3 = 5
2 3 4 + * = 2 * 3 + 4 = 10
it doesnt have to change the postfix to infix it just has to be able to give the correct answer.(but the programmer should understand how postfix and infix work)
I am thinking that I have to somehow create a stack and allocate and delete space from memory dynamically. But im not sure where I should begin or what level of programming this involves.
if anyone has any code or comments please share them. Thank you.