I'm trying to write a stack, and post-fix calculator. With the input that I'll be receiving, there will be a '#' before every number, a '!' before every operator, and a '.' to end the expression. I don't need to worry about error checking at all, and need to account for a space between every number and symbol. Input won't come in any other way.
With what I tried, I just tried to implement a basic stack class, and tried my best at the calculator. So far, when I enter the input into the console, it just goes to the next line. I'm pretty sure I have more things wrong, though.
Just a little update, swapped out the cin.get's for just cin >> so that I ignore the whitespace, and don't have to worry about it. Getting a seg fault now.