Yeah. I am trying to create a program which converts infix notation to postfix notation. In the text file it contains infix notation, and thus I have to convert file input to postfix notation.
Contents of textfile:
A + B * (C - D * E) / F
AB * CDE + (RST - UV / XX) * 3 - X5
A + B * (C - D * E) / F
AB * CDE + (RST - UV / XX) * 3 - X5
A looks like an operand, but it isn't an integer (rather it is just a symbol)
RST could be a single operand, or three variables R, S AND T multiplied together?
3 is an integer
X5 - I assume is a single variable
It might be necessary to go through the text a single character at a time, following some rules which you have to devise, in order to determine what each character or group of characters represents.
Small comment, there are floating-point numbers such as 12.53 here.
Rather than trying to distinguish between integer and floating, point, I'd just use type double for all the numbers.