I am at the end of my rope. I have spent 3 days trying different ideas and searching this board and the internet for answers.
We have to build a calculator. I take in the data from a file, then store as a cstring. I'm lost from there.
We have to convert from char to a double. Get rid of the spaces. and then depending on what operation is in the string, do a calculation.
ex. 3 5 +
I'm not looking for code from you guys just a general outline of how you would handle the sequence. Do the values get stored in the same array after converting to double? Do I have to create another array or variables to store the data? When converting to a double won't the operater get thrown out?
At this point my head is swimming and I don't know which end is up. I would appreciate the guidence. And I thank you for your time in advance.