When I run the main file below, the getline function copies into input_string variable a weird character that somehow overwrites a string output before it, such that "input" is overwritten by "@@@@@" as in below:
@@@@@_string : $$1+2^(2*(4-2))^2
The code that does this is below the only comment in the code. What is going on and how do I fix this?
Is getline recording a character that is not character on keyboard?
Is infixFile.txt created on Windows machine and you are trying to run tis code on Linux one?
It looks like you string contains CR (carriage return) character which is possible in indicated case as Windows uses CRLF as endline and Linux uses just LF
infixFile.txt created on Windows machine and you are trying to run tis code on Linux one?
It looks like you string contains CR (carriage return) character which is possible in indicated case as Windows uses CRLF as endline and Linux uses just LF
Yea, I am using CYGWIN on windows, which allows me to use LINUX commands. But I created the text file in windows. I will try and create the text in a different software when I get home.